android界面线性布局
来源:互联网 发布:java程序员买书 编辑:程序博客网 时间:2024/05/21 17:33
<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"//垂直排列
android:background="@drawable/ic_launcher"
tools:context=".Addressbook" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"//水平排列
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用户名"
android:textSize="20sp"
/>
<EditText
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:hint="请输入用户名"
android:inputType="textPersonName"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密 码"
android:textSize="20sp"
/>
<EditText
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:hint="请输入密码"
android:inputType="textPassword"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="登陆"
android:textSize="20sp"
/>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="注册"
android:textSize="20sp"
/>
</LinearLayout>
</LinearLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"//垂直排列
android:background="@drawable/ic_launcher"
tools:context=".Addressbook" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"//水平排列
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用户名"
android:textSize="20sp"
/>
<EditText
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:hint="请输入用户名"
android:inputType="textPersonName"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密 码"
android:textSize="20sp"
/>
<EditText
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:hint="请输入密码"
android:inputType="textPassword"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp"
>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="登陆"
android:textSize="20sp"
/>
<Button
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="注册"
android:textSize="20sp"
/>
</LinearLayout>
</LinearLayout>
0 0
- android界面线性布局
- 【Android】界面布局之 LinearLayout(线性布局)
- Android界面布局一---------------LinearLayout(线性布局)
- android基础——界面布局(二) 线性布局
- 【Android开发学习23】界面布局之线性布局LinearLayout
- Android常用布局之LinearLayout(线性布局)仿酷狗登录界面
- UI界面-线性布局
- android布局之线性布局
- android布局之线性布局
- Android布局之线性布局
- Android布局之线性布局
- android 布局学习---线性布局
- android布局之线性布局
- Android布局之线性布局
- Android 布局LinearLayout(线性布局)
- Android 线性布局详解
- Android线性布局
- Android 线性布局:LinearLayout
- linux kernel 学习笔记一 编译内核
- zoj2587 sap最小割+判断割的唯一性
- Unrooted tests initializationError
- 面试题-关于大数据量的分布式处理
- DIV拖动及DOM2移除事件注意事项
- android界面线性布局
- Android DecorView浅析
- 数学分析教程(第三版)读后感
- unity3d插件Daikon Forge GUI 中文教程-6-高级控件richtextlabel的使用
- 20140815收盘小结
- 整理一下:互联网基础定律
- 《Programming in Lua 3》读书笔记(十九)
- NSString的retainCount
- 01-About Documentation