<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>

更多相关文章

  1. AndroidManifest.xml
  2. Android(安卓)SDK下载和更新失败的解决方法
  3. 学习Android界面开发: Shape Drawable
  4. 最全的PHP开发Android应用程序
  5. 应用界面主题Theme使用方法
  6. 【Android开发基础】应用界面主题Theme使用方法
  7. 从Android界面开发谈起
  8. eclipse中开发Android出现问题解决记录和使用技巧
  9. Android用户界面 UI组件--ImageView及其子类ImageButton,QuickCo

随机推荐

  1. android SDK安装后设置环境变量
  2. android日历实现
  3. Android(安卓)Compile Error Do not Acce
  4. Android(安卓)添加自定义BOOT_COMPLETED
  5. Android(安卓)Button的背景图片拉伸变形
  6. 2020-08-07
  7. Android(安卓)系统图标大全
  8. Android:自动完成文本框
  9. android studio软件下载地址
  10. Android自动化测试之MonkeyRunner-startA