当前位置: 编程技术>移动开发
android教程之textview解析带图片的html示例
来源: 互联网 发布时间:2014-10-23
本文导语: 代码如下:public class MainActivity extends Activity { private Handler handler; private String html; private TextView tv; private ProgressBar bar; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_...
代码如下:
public class MainActivity extends Activity {
private Handler handler;
private String html;
private TextView tv;
private ProgressBar bar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// 网上找的html数据
html = "TextView使用HTML
强调
斜体
"+ "
超链接HTML入门学习HTML!
颜色1"
+ "
颜色2
标题1标题2标题3大于>小于