用相对布局实现登陆界面设计
来源:互联网 发布:国内最美的海滩知乎 编辑:程序博客网 时间:2024/05/21 19:44
activity_main.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:padding="15dp"
>
<TextView
android:id="@+id/lableView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="登陆界面" />
<EditText
android:id="@+id/usernameText"
android:layout_below="@id/lableView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:hint="用户名"
/>
<EditText
android:id="@+id/passwordText"
android:layout_below="@id/usernameText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/usernameText"
android:layout_alignRight="@id/usernameText"
android:hint="密码"
android:inputType="textPassword"
/>
<Button
android:id="@+id/cancleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/passwordText"
android:layout_alignParentEnd="true"
android:text="取消"
/>
<Button
android:id="@+id/submitButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/cancleButton"
android:layout_toLeftOf="@id/cancleButton"
android:text="确定"
/>
</RelativeLayout>
- 用相对布局实现登陆界面设计
- 使用相对布局实现猜拳游戏界面设计
- 用QT实现简单请求登陆界面设计
- Android布局--相对布局,RTL,用代码实现布局
- 用java 编码实现相对布局界面
- 登陆界面设计
- android布局基础及范例(一):QQ登陆界面设计
- android布局基础及范例:QQ登陆界面设计
- RelativeLayout代码实现相对布局
- 相对布局:使用相对布局实现如下界面的设计
- 用代码写相对布局
- Android相对布局实现各种梅花效果
- android相对布局实现梅花效果
- Android相对布局实现各种梅花效果
- Android相对布局实现各种梅花效果
- Android相对布局实现各种梅花效果
- Android 简单 相对布局的实现;
- Android登陆界面设计demo
- cocos2d-x json解析 jsonBox
- C#关于多线程原理
- win7 SqlServer2005 Management Studio Express 安装错误提示:29506
- SkinMagic 进行皮肤设置 (SkinMagic使用教程)
- PAT (Basic Level) Practise (中文)—— 1009. 说反话
- 用相对布局实现登陆界面设计
- c++输出格式设置
- Android页面切换方法和区别
- Google发布GAE 1.8.1版
- Mac下删除和安装cocos2d-x
- GZIP压缩
- 【成功解决】ubuntu 12.04 解压 zip 7z rar jar 文件,文件名中文乱码的问题
- SkinMagic使用后按钮加自定义图标或菜单GetMneu返回NULL的解决方法
- 错误笔记!【二】ssh整合问题