QQ登录界面布局

简单的qq登录界面布局

 1 <?xml version="1.0" encoding="utf-8"?>
 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     xmlns:app="http://schemas.android.com/apk/res-auto"
 4     xmlns:tools="http://schemas.android.com/tools"
 5     android:layout_width="match_parent"
 6     android:layout_height="match_parent"
 7     tools:context=".MainActivity"
 8     android:orientation="vertical"
 9     android:background="#e6e6e6">
10     <ImageView
11         android:id="@+id/iv"
12         android:layout_width="70dp"
13         android:layout_height="70dp"
14         android:layout_centerHorizontal="true"
15         android:layout_marginTop="40dp"
16         android:src="#00f150"/>
17     <LinearLayout
18         android:id="@+id/zh"
19         android:layout_width="match_parent"
20         android:layout_height="wrap_content"
21         android:layout_below="@id/iv"
22         android:layout_centerVertical="true"
23         android:layout_marginBottom="5dp"
24         android:layout_marginLeft="10dp"
25         android:layout_marginRight="10dp"
26         android:layout_marginTop="15dp"
27         android:background="#ffffff">
28         <TextView
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:padding="10dp"
32         android:textColor="#000"
33         android:text="账号"
34         android:textSize="20sp"/>
35         <EditText
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:layout_marginLeft="5dp"
39             android:padding="10dp" />
40     </LinearLayout>
41     <LinearLayout
42         android:id="@+id/mm"
43         android:layout_width="match_parent"
44         android:layout_height="wrap_content"
45         android:layout_centerVertical="true"
46         android:layout_below="@id/zh"
47         android:layout_marginLeft="10dp"
48         android:layout_marginRight="10dp"
49         android:background="#ffffff">
50         <TextView
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:padding="10dp"
54             android:textColor="#000"
55             android:text="密码"
56             android:textSize="20sp"/>
57 
58         <EditText
59             android:layout_width="match_parent"
60             android:layout_height="wrap_content"
61             android:layout_marginLeft="5dp"
62             android:password="true"
63             android:padding="10dp" />
64     </LinearLayout>
65     <Button
66         android:id="@+id/btn_login"
67         android:layout_width="match_parent"
68         android:layout_height="wrap_content"
69         android:layout_below="@+id/mm"
70         android:layout_marginLeft="10dp"
71         android:layout_marginRight="10dp"
72         android:layout_marginTop="50dp"
73         android:background="#3c8dc4"
74         android:text="登录"
75         android:textColor="#ffffff"
76         android:textSize="20sp"
77         />
78 </RelativeLayout>

 

posted @ 2019-03-20 16:48  浅绿色i  阅读(617)  评论(0编辑  收藏  举报