webview加载html格式的文本
2016-03-21 15:10
381 查看
String customHtml = "<html><body><font color='red'>hello baidu!</font></body></html>";
webview.loadData(customHtml, "text/html", "UTF-8"); 加载定义的代码,并设定编码格式和字符集。
webview.loadData(customHtml, "text/html", "UTF-8"); 加载定义的代码,并设定编码格式和字符集。
相关文章推荐
- Android APK反编译就这么简单 详解(附图)
- android编译hmm命令的输出
- 自定义滑动按钮为例图文剖析Android自定义View绘制
- Google cardBoard Android API (七):Eye
- android:persistent (非系统app失效)
- Unity3D UDP 服务端例子
- iOS离线缓存
- Android官方开发文档Training系列课程中文版:构建第一款安卓应用之程序运行
- swift设置圆角
- ios .a静态库和framework静态库的创建以及使用
- android 引导图engine类封装
- 三言两语frame&bounds
- android支付宝支付流程
- iOS WebView调用JS的一个小坑
- 搜索图标居中的搜索框~iOS风格搜索框
- iOS-仿百思不得姐app
- Google cardBoard Android API (六):DistortionRenderer
- 微信cookie内容
- 微信cookie内容
- 选择Android程序开发机构开发app需要注意哪几点