How to load html string in a webview?

前端 未结 4 706
既然无缘
既然无缘 2020-12-07 22:25

i have a html string containing this:

    
    
      
            


        
4条回答
  •  旧巷少年郎
    2020-12-07 22:55

    I had the same requirement and I have done this in following way.You also can try out this..

    Use loadData method

    web.loadData("

    "+movName+"("+movYear+")

    Director : "+movDirector+"

    Producer : "+movProducer+"

    Character : "+movActedAs+"

    Summary : "+movAnecdotes+"

    Synopsis : "+movSynopsis+"

    \n","text/html", "UTF-8");

    movDirector movProducer like all are my string variable.

    In short i retain custom styling for my url.

提交回复
热议问题