URL链接 email 链接

TextView识别链接的方式有两种,一种是自动识别链接和HTML解析链接

自动识别链接:

<!-- android:autoLink="web"-设置自动识别链接,值web为匹配Web网址 -->

<!--android:autoLink="phone"-设置自动识别链接,值phone为匹配电话号码 -->

<!-- android:autoLink="email"-设置自动识别链接,值email为匹配Email地址 -->

<!-- android:autoLink="all"-设置自动识别链接,值all为匹配所有 -->

例子:

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:text=" 网址:http://www.thinkandroid.cn。qq群:169415162 邮箱:liubin8095@126.com"
android:textSize="16dp" />

更多相关文章

  1. android Intent打开URL链接
  2. 网页链接拉起Unity Android和iOS APP
  3. Android -- 文字设置超链接
  4. Android中的RecyclerView学习网址
  5. ADB和Fastboot最新版的谷歌官方下载链接
  6. Android各版本源码下载链接
  7. Android Studio 关联项目软链接
  8. Android 部分内容设置颜色、字体、超链接、图片
  9. Android Studio 1.0 官网下载链接

随机推荐

  1. android color 透明度列表
  2. Android(安卓)new Message()和Message.ob
  3. Createing Dialogs/创建对话框
  4. android当前apn的状态以及获取方法
  5. Android开发指南(30) —— Multimedia an
  6. Android(安卓)NDK学习(7)NDK测试时遇到的问
  7. Android回调的使用方式
  8. Android(安卓)init进程——解析配置文件
  9. Android(安卓)集成百度地图实现设备定位
  10. Android(安卓)InputMethod 源码分析,显示