登录界面.xml

来源:互联网 发布:unity3d 物体穿过地面 编辑:程序博客网 时间:2024/06/04 18:19
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:id="@+id/all"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="#e8e8e8"    android:orientation="vertical" >    <LinearLayout        android:layout_width="match_parent"        android:layout_height="50dp"        android:background="#e8e8e8" >        <Button            android:id="@+id/x"            android:layout_width="50dp"            android:layout_height="50dp"            android:background="@drawable/x2" />    </LinearLayout>    <LinearLayout        android:layout_width="85dp"        android:layout_height="85dp"        android:layout_gravity="center"        android:layout_margin="10dp"        android:background="@drawable/logo1" >    </LinearLayout>    <LinearLayout        android:layout_width="match_parent"        android:layout_height="40dp"        android:background="#ffffff" >        <ImageView            android:id="@+id/userid"            android:layout_width="30dp"            android:layout_height="30dp"            android:layout_gravity="center"            android:layout_margin="8dp"            android:background="@drawable/user1" />        <EditText            android:id="@+id/user"            android:layout_width="330dp"            android:layout_height="match_parent"            android:layout_marginBottom="3dp"            android:layout_marginLeft="15dp"            android:layout_marginTop="3dp"            android:background="@null"            android:hint="@string/hint_user"            android:singleLine="true" />    </LinearLayout>    <LinearLayout        android:layout_width="match_parent"        android:layout_height="1dp"        android:background="#ffffff"        android:gravity="center" >        <LinearLayout            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_marginEnd="14dp"            android:layout_marginStart="14dp"            android:background="#e8e8e8" >        </LinearLayout>    </LinearLayout>    <LinearLayout        android:layout_width="match_parent"        android:layout_height="40dp"        android:background="#ffffff" >        <ImageView            android:id="@+id/user_psw"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="center"            android:layout_marginLeft="14dp"            android:background="@drawable/psw1" />        <EditText            android:id="@+id/psw"            android:layout_width="330dp"            android:layout_height="match_parent"            android:layout_marginBottom="3dp"            android:layout_marginLeft="26dp"            android:layout_marginTop="3dp"            android:background="@null"            android:hint="@string/hint_psw"            android:inputType="textPassword"            android:singleLine="true" />    </LinearLayout>    <CheckBox        android:id="@+id/rmpwd"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_gravity="center" />    <CheckBox        android:id="@+id/autlgn"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_gravity="center" />    <Button        android:id="@+id/button_login"        android:layout_width="match_parent"        android:layout_height="35dp"        android:layout_gravity="center"        android:layout_marginLeft="15dp"        android:layout_marginRight="15dp"        android:layout_marginTop="15dp"        android:background="@drawable/loggin"        android:text="@string/loggin"        android:textColor="#ffffff"        android:textSize="14sp" />    <Button        android:id="@+id/nopsw"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_gravity="center"        android:layout_marginTop="14dp"        android:background="#e8e8e8"        android:text="@string/login_nopsw"        android:textColor="#3021eb" />    <LinearLayout        android:layout_width="match_parent"        android:layout_height="match_parent"        android:gravity="center"        android:orientation="horizontal" >        <Button            android:id="@+id/loggin"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="bottom"            android:layout_marginRight="10dp"            android:background="#e8e8e8"            android:paddingBottom="18dp"            android:text="@string/regsist"            android:textColor="#3021e0" />        <TextView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="bottom"            android:paddingBottom="18dp"            android:text="|"            android:textColor="#7d7551" />        <Button            android:id="@+id/qqlog"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="bottom"            android:layout_marginLeft="10dp"            android:background="#e8e8e8"            android:paddingBottom="18dp"            android:text="@string/qq"            android:textColor="#3021e0" />    </LinearLayout></LinearLayout>

0 0
原创粉丝点击