android TextView用法
来源:互联网 发布:淘宝卖家能延长收货吗 编辑:程序博客网 时间:2024/05/21 04:16
TextView可以放文本,也可以放图片,如下所示
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/background"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello"
android:autoLink="email"
android:height="50px"
/>
<TextView
android:layout_width="wrap_content"
android:id="@+id/textView1"
android:text="带图片的TextView"
android:drawableTop="@drawable/ic_launcher"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/textView2"
android:textColor="#0f0"
android:textSize="20px"
android:text="多行文本:在很久很久以前,一个小偷他偷吃了我的水果"
android:width="300px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/textView3"
android:textColor="#f00"
android:textSize="20px"
android:text="单行文本:在很久很久以前,一个小偷他偷吃了我的水果"
android:width="300px"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
- android TextView用法
- Android--TextView属性用法
- Android基础-TextView用法
- Android TextView 用法小结
- android 中 TextView的用法
- Android中TextView扩展用法
- Android学习篇:TextView用法
- Android: TextView常用属性的用法详解
- Android TextView的一些特殊用法
- textview用法
- Android的TextView与Html相结合的用法
- Android的TextView与Html相结合的用法
- Android中TextView中的文字颜色设置setTextColor的用法
- android中TextView、TextEdit和Button的用法以及draw9patch
- android初学笔记,TextView及其派生组件的基本用法
- android TextView 自动识别电话|网址|邮件(autolink的用法)
- Android TextView
- android textview
- zhangyu小白看正则表达式
- 马士兵教你如何面试(记录原话)
- 互联网总裁之路,从0到500万
- hdu 4704 sum
- 《python核心编程第二版》第八章练习解析
- android TextView用法
- Ruby on Rails总结(一)
- 《数值分析》2.1
- Jenkins+Ant+Java+Junit+SVN使用总结
- webservice的服务端和客户端的创建
- Ruby on Rails总结(二)
- webService创建服务器与客户端
- C++求所有的三阶魔方阵(深度优先探索)
- P2P技术基础