search

Home  >  Q&A  >  body text

android - app 协议页面的设计

请教各位前辈,app的协议页面是如何设计的?

我如何能够让他自适应的显示出一长串的文字?并且能够给某一句话加上一些样式如字体颜色、大小、粗细等。。

是不是只能采用html页面?

巴扎黑巴扎黑2773 days ago423

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 18:00:08

    This is all implemented by WebView. Implement an ActionBar yourself, and then let WebView load different URLs according to the current locale.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 18:00:08

    Generally, it is recommended to use h5 for mixed graphics and text layout. For pure text, you can get the html style from the server and display it locally with TextView. Android supports html display. The method seems to be called Html.fromHtml(). The specific usage can be found on Baidu. Down

    reply
    0
  • Cancelreply