Android菜鸟日记7

1.LinearLayout的使用方法
线性布局

Ps: android:orientation 布局方式 horizontal 水平 vertical垂直 是linearLayout的属性



Android:id 为控件指定序列号
Android:text 指定控件显示的文字
Android:grivity 指定控件的基本位置 居中等(这里设置的实际是空间中的内容位置)
Android:textsize 指定控件文字的大小
Android:width 指定控件的宽度
Android:height 指定控件的高度
Android:background 指定控件的背景色RGB 命名法
Android:padding 指定控件的内边距
Android:sigleLine 指定控件内容是否显示为一行




2.TableLayout 的使用方法
表格布局

< TableLayout ……android:stretchColumns=”0” 指定如果无法填满行时拉伸的列号(java中列号从0开始)>
<TableRow>
控件1,控件2……每个控件占一列
</TableRow>
<TableRow>
……
</TableRow>
……
< /TableLayout >

2011-8-12
poolo

更多相关文章

  1. Android(安卓)页面布局属性全
  2. Android相对布局属性全集
  3. Android控件之TextView(显示文本框控件)
  4. Android系列之浅谈AndroidGallery控件使用方法详解
  5. Layout属性介绍
  6. android —— 自定义控件 最简单下拉刷新,Google最新(可刷新任何控
  7. android将控件设置为透明色
  8. android帖子
  9. Android(安卓)Layout的属性

随机推荐

  1. Android 通过蓝牙控制小车源代码+视频
  2. Parcelable接口的使用(跨进程,Intent传输)
  3. Android(安卓)SDK 更新时连接出现“https
  4. Android 出错提示:Emulator without GPU e
  5. android横竖屏切换处理
  6. 实现ScrollView的嵌套
  7. android集成amazon的相关sdk
  8. Android(安卓)aidl学习笔记-服务端
  9. android开机过程
  10. Android加载SD卡目录,文件夹遍历,图片设置,