您的位置:首页 > 移动开发 > Android开发

Android之如何实现自动拨号,打开网页的功能【超链接】

2015-08-19 18:43 706 查看
3.自动拨号,打开网页等功能:

注意不要忘了导入权限

<TextView

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:autoLink="all"//设置链接的支持功能,all代表支持全部功能,还可以选择,也可以单独选

android:background="#ffcc00"

android:singleLine="true"

android:textColorLink="#ffffff"//设置链接颜色

android:text="15539186845 www.baidu.com" >

</TextView>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: