Html List标签在android TextView中不起作用.这是我的字符串内容:
String str="A dressy take on classic gingham in a soft, textured weave of stripes that resembles twill. Take a closer look at this one.<ul><li>Trim, tailored fit for a bespoke feel</li><li>Medium spread collar, one-button mitered barrel cuffs</li><li>Applied placket with genuine mother-of-pearl buttons</li><li>;Split back yoke, rear side pleats</li><li>Made in the U.S.A. of 100% imported cotton.</li></ul>";
Run Code Online (Sandbox Code Playgroud)
我在这样的文本视图中加载它:
textview.setText(Html.fromHtml(str));
Run Code Online (Sandbox Code Playgroud)
输出看起来像一个段落.我能做什么?它有什么解决方案吗?
编辑:
webview.loadData(str,"text/html","utf-8");
Run Code Online (Sandbox Code Playgroud) 在我的应用程序中,我想检查应用程序商店中是否有我的应用程序的任何更新版本.如果有,则必须通过警报消息通知用户,如果他/她选择升级我想更新新版本.我想通过我的应用程序完成所有这些.这可能吗?
我正在构建一个iOS和Android应用程序,它扫描条形码并从零售商网站上显示该书的产品页面.但现在,我只想从该产品页面获得价格而不是整页.
如何从页面中提取产品的价格,因为RedLaser使用它自己的应用程序.
产品页面:http://goo.gl/rDxAg 价格:321卢比
我想是这样,它可以在iOS和Android来实现,而无需使用外部服务器.
我是新手,所以任何帮助都将受到高度赞赏.