android相对布局实例—登录界面
2013-07-31 15:49
399 查看
<RelativeLayout 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:layout_margin="20dp" tools:context=".MainActivity" > <TextView android:id="@+id/Txttitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:gravity="center_horizontal" android:layout_alignParentRight="true" android:text="登录界面"/> <EditText android:id="@+id/username" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@id/Txttitle" android:layout_alignRight="@id/Txttitle" android:layout_below="@id/Txttitle" android:layout_marginTop="20dp" android:hint="username"/> <EditText android:id="@+id/password" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/username" android:layout_alignLeft="@id/username" android:layout_alignRight="@id/username" android:layout_marginTop="20dp" android:hint="password" android:inputType="textCapWords"/> </RelativeLayout>
相关文章推荐
- Android:布局实例之模仿京东登录界面
- Android:布局实例之模仿京东登录界面
- [转]Android:布局实例之模仿QQ登录界面
- Android:布局实例之模仿QQ登录界面
- Android:布局实例之模仿京东登录界面
- Android:布局实例之常见用户设置界面
- android开发利用tablelayout布局实现登录界面
- Android实现注册登录界面的实例代码
- android界面相对布局
- Android开发实例之miniTwitter登录界面的实现
- Android开发实例之登录界面的实现
- Android:布局实例之常见用户设置界面
- Android入门实例一 登录界面的设计与实现
- 实例:android开发中界面布局
- android开发(1) - 登录界面的布局演示
- Android界面布局二---------------RelativeLayout(相对布局)
- Android:布局实例之常见用户设置界面
- Android界面布局-----RelativeLayout(相对布局)
- Android开发实例之miniTwitter登录界面的实现
- 相对布局(RelativeLayout)写的QQ登录界面