Android布局控件之TableLayout
来源:互联网 发布:腾讯云数据库怎么连接 编辑:程序博客网 时间:2024/05/08 00:51
代码:
<?xml version="1.0" encoding="utf-8"?><TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_column="14"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:text="用户名" android:id="@+id/textView" android:layout_column="1" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="textPassword" android:ems="10" android:id="@+id/editText2" android:layout_column="11" android:layout_span="5" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:text="密码" android:id="@+id/textView2" android:layout_column="1" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/editText" android:layout_column="11" android:layout_span="6" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"></TableRow> <TableRow android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:text="登录" android:id="@+id/button4" android:layout_column="11" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="注册" android:id="@+id/button5" android:layout_column="15" /> </TableRow></TableLayout>
运行截图:
0 0
- Android布局控件之TableLayout
- Android控件之TableLayout布局拉伸宽度
- Android布局之TableLayout
- Android之TableLayout布局
- android之【TableLayout布局】
- Android之TableLayout布局
- Android 布局之TableLayout
- Android布局之TableLayout
- Android常见布局控件之LinearLayout和TableLayout
- Android:控件布局(表格布局)TableLayout
- android布局之TableLayout使用
- android之tableLayout布局之一
- android 开发布局之TableLayout
- android布局管理器之TableLayout
- android之tableLayout布局之一
- Android UI布局之TableLayout
- Android布局文件之TableLayout
- Android开发之TableLayout布局
- Eclipse环境配置
- Linux 查看系统硬件信息(实例详解)
- [Android教程] android读取sim联系人资料的代码
- iOS开发 - Swift实现清除缓存功能
- POJ 1160 dp + 四边形优化
- Android布局控件之TableLayout
- 使用eclipse的模版功能来快速编码
- POJ 1321棋盘问题(简单搜索)
- git使用方法[一]
- 使用SPA(sql performance Analyzer)
- cocos2dx的CCCamera
- iOS开发系列文章(持续更新……)
- ViewFlipper实现手势滑动
- Windows沙拉:默认浏览器背后的故事