andriod_第二天_表格布局
来源:互联网 发布:企业邮箱 端口 编辑:程序博客网 时间:2024/06/07 03:04
TableLayout(相对布局)
:layout/activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
<TableRow>
<TextView
android:text="用户名:"
/>
<EditText
android:hint="请输入1-10个字符"/>
</TableRow>
<TableRow>
<TextView
android:text="密 码:"
/>
<EditText
android:hint="请输入1-10个字符"/>
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">
<TableRow>
<Button
android:text="登陆"
android:background="@drawable/btn_bg"
android:textColor="#FFF"
android:drawableLeft="@drawable/login32x32"
android:layout_gravity="center_horizontal"
/>
<Button
android:text="退出"
android:background="@drawable/btn_bg"
android:textColor="#FFF"
android:drawableLeft="@drawable/exit32x32"
android:layout_gravity="center_horizontal"
/>
</TableRow>
</TableLayout>
</LinearLayout>
效果:
0 0
- andriod_第二天_表格布局
- Android基础_页面布局_TableLayout(表格布局)
- 第二天 一列布局
- 第二天 一列布局
- Android布局第二天
- Andriod从零单排07_表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 表格布局
- 遇到的问题----a configuration error occured during startup.please verify the preference field with the pr
- Eclipse程序员要掌握的常用快捷键
- 从B树、B+树、B*树谈到R树
- ubuntu-14.04 系统中安装mysql-5.6.21
- C# WinForm 关于窗体最大化时的是否全屏效果与是否遮盖任务栏
- andriod_第二天_表格布局
- 程序编写(个人记录)
- yum 失败(This system is not registered with RHN.)解决方法
- webview 使用
- 马士兵struts2视频教程第六十六集
- 如何把jpg转换成pdf方法介绍
- Tomcat中JVM内存溢出及合理配置(转载)
- 常用嵌入式数据库概览
- 总账汇率和发票界面当期汇率