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/passwordeye"                android:layout_width="23dp"                android:layout_height="23dp"                android:background="@drawable/kejian"                android:layout_gravity="right|center_vertical"                android:layout_marginRight="10dp"                />                            android:id="@+id/login_button"            android:layout_width="wrap_content"            android:layout_height="45dp"            android:layout_below="@+id/usercode_layout"            android:layout_centerHorizontal="true"            android:layout_marginTop="34dp"            android:background="@drawable/bluebutton"            android:textSize="18sp"            android:text="登          录"            android:textColor="#ffffff" />                    android:id="@+id/login_error"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_alignRight="@id/login_button"            android:layout_below="@id/login_button"            android:text="忘记密码"            android:background="#00000000"            android:textSize="16sp" />                    android:id="@+id/register"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_alignLeft="@id/login_button"            android:layout_below="@id/login_button"            android:background="#00000000"            android:gravity="left|center_vertical"            android:text="注册"            android:textSize="16sp"            android:visibility="visible" />                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"                        />                                        

更多相关文章

  1. Android中gravity的各种效果图
  2. Android(安卓)Content Providers(二)——Contacts Provider
  3. 手机拨号器
  4. Android判断当前系统语言
  5. android 自定义progressbar 样式
  6. ProgressBar使用详解(进度条动画)
  7. Android(安卓)获取Sim卡联系人
  8. android 布局练习
  9. Android(安卓)实现 欢迎界面 自动跳转 到 主界面

随机推荐

  1. Android Studio 单刷《第一行代码》系列
  2. Android生成签名文件并用其对apk文件进行
  3. Android模拟神器――Genymotion
  4. Android辅助功能AccessibilityService与
  5. 如何在MainActivity中使用ReactApplicati
  6. android开发笔记之2012版辅助开发工具包(A
  7. Android数据加密之SHA安全散列算法
  8. Android adb中命令的运行
  9. android关于jni反射的一些操作
  10. Android系统Surface机制的SurfaceFlinger