设为首页 加入收藏

TOP

QQ登录界面布局(一)
2019-08-30 01:09:42 】 浏览:64
Tags:登录 界面 布局

简单的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&quo
首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Android之Material Dialogs详解(.. 下一篇当view为wrap_conten时获取一个vi..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目