【android】:TableLayout的用法
来源:互联网 发布:js时间戳转date 编辑:程序博客网 时间:2024/04/29 15:44
前言
正常的xml的用法,然后就是一个标签代表着一行
一行里面可以写多个控件,其中
android:stretchColumns = “n” 这个属性代表着第n+1列会匹配剩余空间
一个实例为证:
xml文件为:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns = "1" > <TableRow> <TextView android:layout_height ="wrap_content" android:text="Account:"/> <EditText android:id="@+id/account" android:layout_height="wrap_content" android:hint = "Input your account" /> </TableRow> <TableRow> <TextView android:layout_height ="wrap_content" android:text="Password:"/> <EditText android:id="@+id/password" android:layout_height="wrap_content" android:inputType = "textPassword" /> </TableRow> <TableRow> <Button android:id="@+id/login" android:layout_height="wrap_content" android:layout_span ="2" android:text = "Login"/> </TableRow></TableLayout>
实例图:(明天传)
0 0
- 【android】:TableLayout的用法
- [Android] TableLayout 中 stretchColumns/shrinkColumns 的用法
- android 的tablelayout
- Android TableLayout的使用
- TableLayout 中 stretchColumns的用法
- ViewPager+TableLayout 的简单用法
- TableLayout中stretchColumns、shrinkColumns的用法
- TableLayout中stretchColumns、shrinkColumns的用法
- (转)TableLayout中stretchColumns、shrinkColumns的用法
- Android应用开发之( TableLayout中stretchColumns、shrinkColumns的用法)
- Android应用开发之( TableLayout中stretchColumns、shrinkColumns的用法)
- android TableLayout
- android&&TableLayout
- android tablelayout
- Android tablelayout
- Android TableLayout
- android tablelayout
- android Tablelayout
- eclipse打开时如何查找jre
- 最新FusionCharts2D柱状图
- Spark定制班第14课:Spark Streaming源码解读之State管理之updateStateByKey和mapWithState解密
- UC浏览器首页滑动动画实现
- 1、python文件读写练习
- 【android】:TableLayout的用法
- 从招式与内功谈起——设计模式概述(一)
- ORB特征检测算法小结
- 从招式与内功谈起——设计模式概述(二)
- Android使用Retrofit技术仿微信图片上传,可以选择多张图片拍照上传
- 『数据挖掘』scikit-learn包的初级学习
- Struts2-包的继承、result属性、全局及动态结果配置
- 从招式与内功谈起——设计模式概述(三)
- 数据输入输出流