Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7563455
  • 博文数量: 961
  • 博客积分: 15795
  • 博客等级: 上将
  • 技术积分: 16612
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-07 14:23
文章分类

全部博文(961)

文章存档

2016年(1)

2015年(61)

2014年(41)

2013年(51)

2012年(235)

2011年(391)

2010年(181)

分类: Android平台

2015-11-17 14:02:58

 TextView组件的主要功能是用于显示文本,实际上这种控件主要就是提供了一个标签的显示操作,

点击(此处)折叠或打开

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout                 ?    定义线型布局管理器
  3.     xmlns:android=""
  4.     android:orientation="vertical"     ?    所有组件垂直摆放
  5.     android:layout_width="fill_parent"    ?    布局管理器宽度为屏幕宽度
  6.     android:layout_height="fill_parent">    ?    布局管理器高度为屏幕高度
  7.     <TextView                ?    定义文本显示组件
  8.         android:id="@+id/msg"        ?    组件ID,程序中使用
  9.         style="@style/msg_style"        ?    定义组件的样式文件
  10.         android:text="网址:"/>    ?    组件的默认显示文字
  11. </LinearLayout>

020402_文本显示组件:TextView.ppt
阅读(916) | 评论(0) | 转发(0) |
0

上一篇:View 组件简介

下一篇:按钮组件:Button

给主人留下些什么吧!~~