android相对布局实例—登录界面
16lz
2021-12-04
<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>
更多相关文章
- AndroidManifest.xml
- Android(安卓)SDK下载和更新失败的解决方法
- 学习Android界面开发: Shape Drawable
- 最全的PHP开发Android应用程序
- 应用界面主题Theme使用方法
- 【Android开发基础】应用界面主题Theme使用方法
- 从Android界面开发谈起
- eclipse中开发Android出现问题解决记录和使用技巧
- Android用户界面 UI组件--ImageView及其子类ImageButton,QuickCo