-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity_profile.xml
108 lines (93 loc) · 3.91 KB
/
activity_profile.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ProfileActivity">
<include
android:id="@+id/profile_appBar"
layout="@layout/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="@+id/profile_appBar">
<!-- **** Place Your Content Here **** -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@drawable/toolbar_dropshadow" />
</FrameLayout>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/profile_image"
android:layout_width="130dp"
android:layout_height="130dp"
android:layout_below="@+id/profile_appBar"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:src="@drawable/default_image" />
<TextView
android:id="@+id/profile_displayName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/profile_image"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp"
android:text="Display Name"
android:textColor="@android:color/black"
android:textSize="24sp" />
<TextView
android:id="@+id/profile_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/profile_displayName"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:ellipsize="end"
android:gravity="center"
android:maxLines="5"
android:text="Current User Status"
android:textColor="@android:color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/profile_totalFriends"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/profile_send_req_btn"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:text="Total Friends"
android:textColor="@android:color/black"
android:textSize="16sp" />
<Button
android:id="@+id/profile_send_req_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/profile_decline_btn"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:background="@drawable/rounded_rectangle_light"
android:backgroundTint="@color/colorAccent"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:text="Add Friend"
android:textColor="@color/colorWhite" />
<Button
android:id="@+id/profile_decline_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:background="@android:color/transparent"
android:backgroundTint="@color/colorAccent"
android:text="Decline"
android:textColor="@color/colorError" />
</RelativeLayout>