Android Layout 01_activity_Login.xml
2015-05-30 11:44
288 查看
activity_login.xml
<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:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="账户:" /> <EditText android:id="@+id/et_loginname" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_toRightOf="@id/textView1" android:hint="登录名" android:ems="10" > <requestFocus /> </EditText> <TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/et_loginname" android:text="密码:" /> <EditText android:id="@+id/et_loginpwd" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/et_loginname" android:layout_toRightOf="@id/textView2" android:layout_marginLeft="8dp" android:hint="账户密码" android:ems="10" android:inputType="numberPassword" /> <Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8dp" android:layout_below="@id/et_loginpwd" android:layout_alignParentRight="true" android:text="重置" /> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/et_loginpwd" android:layout_toLeftOf="@id/button2" android:onClick="login" android:text="确定" /> </RelativeLayout>
相关文章推荐
- android 圆形头像的Imageview
- Android 获取下载链接文件大小
- android 布局 使用 viewPager 时,如何解决 和 子页面 长按滑动 冲突问题
- android HttoPost 请求服务器超时设置
- Android 给TextView添加点击事件
- 两分钟彻底让你明白Android Activity生命周期(图文)!
- Android学习笔记--欢迎界面的实现
- Android 开发服务类 02_NewsListServlet
- Android 开发服务类 01_ServletForXML
- Android Studio使用记录
- 手把手教你android通过PHP操作Mysql(1)
- 解决Android Studio 和 Android SDK Manager 无法在线更新的问题.
- Android实战简易教程-第一枪(Spinner控件详解)
- Android中用GridView实现九宫格的两种方法
- Android开发学习笔记:Gallery和GridView浅析
- Google I/O 2015 为 Android 开发者带来了哪些福利?
- Android attrs.xml文件中属性类型format值的格式
- android应用程序如何调用支付宝接口
- Android 添加子视图(addView和setView)
- Android提高十六篇之使用NDK把彩图转换灰度图