Android(安卓)Studio简单的登录界面
16lz
2021-12-04
1、首先我们先看一下效果图
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" > android:id="@+id/login_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:gravity="center" > android:id="@+id/username_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="55dp" android:gravity="center" > android:id="@+id/username_edit" android:layout_width="match_parent" android:layout_height="55dp" android:layout_marginTop="5dp" android:hint="账号/手机号/邮箱" android:paddingRight="60dp" android:maxLength="20" android:paddingLeft="55dp" > android:layout_width="22dp" android:layout_height="21dp" android:layout_marginStart="8dp" android:layout_gravity="left|center_vertical" android:background="@drawable/zhanghao" android:visibility="visible" /> android:id="@+id/contry_sn" android:layout_width="40dp" android:layout_height="50dp" android:layout_gravity="left|center_vertical" android:layout_marginTop="4dp" android:gravity="center" android:text="+62" android:textColor="@android:color/black" android:textSize="18sp" android:visibility="invisible" /> android:id="@+id/usercode_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/username_layout" android:layout_marginTop="6dp" android:gravity="center" > android:id="@+id/userpassword_edit" android:layout_width="match_parent" android:layout_height="55dp" android:hint="密码" android:inputType="textPassword" android:paddingRight="60dp" android:maxLength="20" android:paddingLeft="55dp" > android:layout_width="24dp" android:layout_height="22dp" android:layout_marginStart="7dp" android:layout_gravity="left|center_vertical" android:background="@drawable/mima" /> android:id="@+id/remember_layout000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="1dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" > android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:textSize="19dp" android:textColor="@color/colorPrimary" android:layout_marginLeft="90dp" android:text="-----第三方登录-----" /> android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="75dp" android:orientation="horizontal" > android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" android:orientation="vertical" > android:id="@+id/qq" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#00000000" android:drawableTop="@drawable/qq" /> android:id="@+id/weibo" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center"> android:id="@+id/gonggao_button" android:layout_width="match_parent" android:layout_height="match_parent" android:drawableTop="@drawable/weibo" android:background="#00000000" /> android:id="@+id/dongtai" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center"> android:id="@+id/weixin" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#00000000" android:drawableTop="@drawable/weixin" />
更多相关文章
- Android中gravity的各种效果图
- Android(安卓)Content Providers(二)——Contacts Provider
- 手机拨号器
- Android判断当前系统语言
- android 自定义progressbar 样式
- ProgressBar使用详解(进度条动画)
- Android(安卓)获取Sim卡联系人
- android 布局练习
- Android(安卓)实现 欢迎界面 自动跳转 到 主界面