ZNDS智能电视网 推荐当贝市场

TV应用下载 / 资源分享区

软件下载 | 游戏 | 讨论 | 电视计算器

综合交流 / 评测 / 活动区

交流区 | 测硬件 | 网站活动 | Z币中心

新手入门 / 进阶 / 社区互助

新手 | 你问我答 | 免费刷机救砖 | ROM固件

查看: 12266|回复: 0
上一主题 下一主题
[教程]

Android 设置TextView的超链接

[复制链接]
跳转到指定楼层
楼主
发表于 2013-8-28 16:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1Android TextView URL 、电话与电邮超链接设置,android textview 控件,android textview 超链接,android textview 电话,android textview 电子邮件,android textview web ,android textview phone ,android textview email ,android textview url 。   
  android:autoLink   
  设置是否当文本为 URL链接、Email 、电话号码、Map 时,文本显示为可点击的链接。   
  可选值:none / web / email / phone / map / all 。   
   
  1、网页超链接设置   
   
  main.xml 文件   
   
  1.    
    <?xml version="1.0" encoding="utf-8"?>   
       
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"   
       
    android:layout_width="fill_parent"   
       
    android:layout_height="fill_parent">   
       
       
    <TextViewandroid:autoLink="all|web"   
       
    android:layout_width="fill_parent"   
    android:layout_height="wrap_content"   
    android:text=""/>   
       
    </LinearLayout>
复制代码
2、电话超链接设置   
   
   
  1.    
    <?xml version="1.0" encoding="utf-8"?>   
       
    <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android   
       
    android:orientation="vertical"   
       
    android:layout_width="fill_parent"   
       
    android:layout_height="fill_parent">   
       
    <TextViewandroid:autoLink="all|phone"   
       
    android:layout_width="fill_parent"   
    android:layout_height="wrap_content"   
    android:text=""/>   
       
    </LinearLayout>
复制代码
</div

上一篇:MediaPlayer小实例
下一篇:jsp/servlet实现文件的上传下载
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|新帖|标签|软件|Sitemap|ZNDS智能电视网 ( 苏ICP备2023012627号 )

网络信息服务信用承诺书 | 增值电信业务经营许可证:苏B2-20221768 丨 苏公网安备 32011402011373号

GMT+8, 2024-5-8 06:17 , Processed in 0.058358 second(s), 13 queries , Redis On.

Powered by Discuz!

监督举报:report#znds.com (请将#替换为@)

© 2007-2024 ZNDS.Com

快速回复 返回顶部 返回列表