-
Notifications
You must be signed in to change notification settings - Fork 224
/
activity_main.xml
127 lines (107 loc) · 4.47 KB
/
activity_main.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mzule.fantasyslide.FantasyDrawerLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/fake" />
<com.github.mzule.fantasyslide.SideBar
android:id="@+id/leftSideBar"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@color/colorPrimary"
android:gravity="center_vertical"
app:maxTranslationX="66dp">
<LinearLayout
android:id="@+id/userInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"
android:gravity="center_horizontal"
android:onClick="onClick"
android:orientation="vertical">
<com.github.mzule.fantasyslide.widget.CircleImageView
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_margin="10dp"
android:src="@drawable/me"
app:civ_border_color="@color/menu_text_color"
app:civ_border_width="2dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="mzule"
android:textColor="@color/menu_text_color"
android:textSize="18sp" />
</LinearLayout>
<TextView
style="@style/MenuText"
android:drawableLeft="@drawable/circle"
android:text="朋友圈" />
<TextView
style="@style/MenuText"
android:drawableLeft="@drawable/wallet"
android:text="钱包" />
<TextView
style="@style/MenuText"
android:drawableLeft="@drawable/coupon"
android:text="优惠券" />
<TextView
style="@style/MenuText"
android:drawableLeft="@drawable/friends"
android:text="好友" />
<TextView
style="@style/MenuText"
android:drawableLeft="@drawable/settings"
android:text="设置" />
</com.github.mzule.fantasyslide.SideBar>
<com.github.mzule.fantasyslide.SideBar
android:id="@+id/rightSideBar"
android:layout_width="133dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@drawable/bg_right_bar"
android:gravity="center_vertical|right"
app:maxTranslationX="-33dp">
<TextView
style="@style/MenuText"
android:text="星期一" />
<TextView
style="@style/MenuText"
android:text="星期二" />
<TextView
style="@style/MenuText"
android:text="星期三" />
<TextView
style="@style/MenuText"
android:text="星期四" />
<TextView
style="@style/MenuText"
android:text="星期五" />
<TextView
style="@style/MenuText"
android:text="星期六" />
<TextView
style="@style/MenuText"
android:text="星期日" />
</com.github.mzule.fantasyslide.SideBar>
</com.github.mzule.fantasyslide.FantasyDrawerLayout>
<TextView
android:id="@+id/tipView"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@color/colorPrimary"
android:gravity="center"
android:padding="20dp"
android:textColor="@color/colorAccent"
android:textSize="16sp"
android:visibility="invisible" />
</RelativeLayout>