SuiShenJi项目_登录界面
来源:互联网 发布:centos latex 编辑:程序博客网 时间:2024/06/05 15:34
登录界面
最重要的是界面的布局思想(但完全照搬他的设计做),在各种不同的手机中都可以完美兼容。
开始工程顺序是先导入所需的资源(图片,颜等)之后再考虑布局。
登录页面
</pre>代码<pre name="code" class="html"><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffffff" android:orientation="vertical" > <LinearLayout android:id="@+id/linearLayout2" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_marginTop="100dp" android:background="@drawable/login_input_end" android:orientation="horizontal" > <RelativeLayout android:id="@+id/rlatout" android:layout_width="wrap_content" android:layout_height="fill_parent" > <TextView android:id="@+id/text_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:text="用户名" android:textColor="@color/black" android:textSize="14sp" /> </RelativeLayout> <EditText android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="20dp" android:background="@drawable/icon_account_zhifubao" android:hint="请输入用户名" android:textSize="13sp" /> <requestFocus /> </LinearLayout> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_marginTop="150dp" android:background="@drawable/login_input_end" android:orientation="horizontal" > <RelativeLayout android:layout_width="wrap_content" android:layout_height="fill_parent" > <TextView android:id="@+id/text_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:text="密 码" android:textColor="@color/black" android:textSize="14sp" /> </RelativeLayout> <EditText android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="20dp" android:background="@drawable/icon_account_zhifubao" android:gravity="center_vertical" android:hint="请输入密码" android:textSize="13sp" > <requestFocus /> </EditText> </LinearLayout> <RelativeLayout android:id="@+id/Rlayout2" android:layout_width="fill_parent" android:layout_height="70dp" android:layout_alignParentLeft="true" android:layout_below="@+id/linearLayout1" > <Button android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="30dp" android:background="@drawable/new_search_button" android:text="登 录" android:id="@+id/btn_login_1" android:textColor="#ffffff" /> </RelativeLayout> <RelativeLayout android:layout_width="fill_parent" android:layout_height="150dp" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" > <TextView android:id="@+id/text_3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="30dp" android:text="没有帐号?" android:textColor="@color/black" android:textSize="16sp" /> <Button android:layout_width="100dp" android:layout_height="50dp" android:layout_alignBaseline="@+id/text_3" android:layout_alignBottom="@+id/text_3" android:layout_alignParentRight="true" android:layout_marginRight="28dp" android:background="@drawable/bg_round_rectangle" android:text="直接登录" android:id="@+id/btn_login_2" android:textSize="16sp" /> </RelativeLayout></RelativeLayout>
效果图
0 0
- SuiShenJi项目_登录界面
- SuiShenJi项目_计算器逻辑
- SuiShenJi项目_按钮等背景样式
- SuishenJi项目_SQLite数据库
- SuiShenJi项目_Activity跳转、传值
- SuiShenJi项目_dialog to Activity动画
- SuiShenJi项目_EditText多行输入
- glmis项目工作日志2_增加登录界面_将drawerlayout改为挤压滑动
- 登录界面_记住密码
- [iOS开发项目-2] 用户登录界面
- android 毕业设计项目开发 -登录界面
- PHP后端android项目(二)登录界面
- RN实战项目登录界面(四)
- C#小项目之登录界面1
- 安卓_登录界面/信息框中删除键
- 安卓_登录界面短信验证码
- 登录界面
- 登录界面
- SVN版本冲突文件说明 和 解决办法
- FontAwesome-用TextView显示图片
- Eclipse新建类向导
- WaitForSingleObject函数的使用
- C++全局变量的声明与定义的详解
- SuiShenJi项目_登录界面
- 深入理解java异常处理机制
- xxx is not in the sudoers file.This incident will be reported
- 数据结构之AVL树
- 数据结构与算法分析2.19题
- MySQL 设计与开发规范
- Java对象的序列化和反序列化
- LabVIEW的主界面如何隐藏
- Android_Fragment实现Tab