demo02TextView
main.xml----- /layout/activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity"> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"/> <TextView
android:id="@+id/mytext1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFCC00"
android:textSize="12pt"
android:text="我是大哥大"/>
<TextView
android:id="@+id/mytext2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFCC00"
android:textSize="12pt"
android:text="网:www.baidu.com"
android:layout_margin="30px"/>
<TextView
android:id="@+id/mytext3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFCC00"
android:textSize="12pt"
android:text="网:www.baidu.com"
android:layout_margin="30px"/>
<!--超链接autoLink-->
<TextView
android:id="@+id/mytext4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFCC00"
android:textSize="12pt"
android:autoLink="all"
android:text="网:www.google.com"
android:layout_marginTop="10px"
android:maxLength=""/>
<TextView
android:id="@+id/mytext4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/logo"
android:text="alamps在文字背景下的水印"
android:textStyle="bold"
android:textColor="#000000"/>
</RelativeLayout>
demo02TextView的更多相关文章
随机推荐
- Bootstrap 进度条媒体对象和 Well 组件
一.Well 组件 这个组件可以实现简单的嵌入效果. //嵌入效果 <div class="well"> Bootstrap </div> //有 lg 和 ...
- NSURLSession
参考文章1, apple文档 一.NSURLSessionConfiguration 介绍:分别配置每一个 session 对象.(NSURLConnection 很难做到) 分类: 1) defau ...
- jfinal
http://blog.csdn.net/zb0567/article/details/21083021
- nodejs爬虫
前言 几个月之前,有同事找我要PHP CI框架写的OA系统.他跟我说,他需要学习PHP CI框架,我建议他学习大牛写的国产优秀框架QeePHP. 我上QeePHP官网,发现官方网站打不开了,GOOGL ...
- 为mutable类型的容器(array,set等)添加kvo,有点麻烦,供参考和了解下吧
http://blog.csdn.net/caryaliu/article/details/49284185 需要在被观察的属性所在的类里面实现一些方法,对开发者不友好,一般不建议使用,这里mark一 ...
- django internal search
最近改进了项目中的站内搜索的功能,增加了全文索引,提升了搜索速度.因为项目框架是django,所以采用django+haystack+pyelasticsearch+elasticsearch的方式实 ...
- Swift-04-Designated&&Convenience
class ClassA { let numA:Int init(num: Int){ numA = num } } class ClassB: ClassA { let numB:Int overr ...
- 在CentOS6.5上安装Tomcat6
Tomcat安装一向方便,linux的比win的更是这样,基本就是拷贝,类似于win中备受青睐的绿色软件,下面只是记录一下过程. 1.从 http://mirrors.cnnic.cn/apache/ ...
- LeetCode Combination Sum III
原题链接在这里:https://leetcode.com/problems/combination-sum-iii/ 题目: Find all possible combinations of k n ...
- jq的核心基础
1.jq代码的风格 jq对象$().css();jQuery().css(); //获取jquery对象 示例$().css('background':'red').css('font-siz ...