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的更多相关文章

随机推荐

  1. Mongo对内嵌文档的CRUD

    { "_id" : ObjectId("5706032acd0a6194868cf53e"), "list" : { "age&q ...

  2. ecshop换用redis做缓存

    <?php /** * ecshop SESSION 保存类 * ================================================================ ...

  3. Qt编写自定义控件大全(liudianwu)

    http://www.cnblogs.com/feiyangqingyun/p/6128288.html http://www.qtcn.org/bbs/read-htm-tid-62279.html

  4. php--求几个数中的最小值

    <?phpecho min(2, 3, 1, 6, 7);  // 1echo min(array(2, 4, 5)); // 2echo min(0, 'hello');     // 0ec ...

  5. Celery - Best Practices

    If you've worked with Django at some point you probably had the need for some background processing ...

  6. 我的第一个WCF程序,很简单适合我等菜鸟

    1.首先我罗列一下网站搜索并经过自己理解的WCF的含义: 1)WCF:(WIndows Communication Foundation)是由微软是由微软发展的一组数据通信的应用开发接口,可以翻译为W ...

  7. UIWebView相关设置

    让UIWebView的背景透明: 1 2 self.webView.backgroundColor = [UIColor clearColor]; self.webView.opaque = NO 这 ...

  8. Ubuntu14.04安装和配置Tomcat8.0.12(转)

    Ubuntu14.04长的好看,所以一时间很感兴趣,研究各种软件的安装和开发环境的配置.今天先把安装的tomcat 8.0.12的教程分享给大家.如果你需要,请收藏!!!   工具/原料 系统环境:U ...

  9. jquery对于table的操作

    $("#datable tr").eq(0).children("td").eq(0).html()   //获得某行某列的值

  10. gcc工具链简述

    工具链软件包括BINUTILS.GCC.GLIBC.GDB等. BINUTILS是二进制程序处理工具,包括链接器.汇编器等目标程序处理的工具. GCC(GNU Compiler Collection) ...