TextView tv_html = (TextView) findViewById(R.id.tv_html);
String str ="Html文本";
tv_html.setText(Html.fromHtml(str));
tv_html.setMovementMethod(LinkMovementMethod.getInstance());
1. 打电话
例子:
`<a href="tel:10086">10086</a>`
使用wtai协议进行拨打电话
TextView tv_html = (TextView) findViewById(R.id.tv_html);
String str ="Html文本";
tv_html.setText(Html.fromHtml(str));
tv_html.setMovementMethod(LinkMovementMethod.getInstance());
1. 打电话
例子:
`<a href="tel:10086">10086</a>`
使用wtai协议进行拨打电话