|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<ScrollView |
3 |
| - xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
4 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
5 | 4 | xmlns:tools="http://schemas.android.com/tools"
|
6 | 5 | android:layout_width="match_parent"
|
7 | 6 | android:layout_height="match_parent"
|
8 |
| - android:orientation="vertical" |
9 | 7 | android:background="@drawable/dt"
|
| 8 | + android:orientation="vertical" |
10 | 9 | android:scaleType="centerCrop"
|
11 | 10 | tools:context="com.example.dhananjay.dailygoals.MainActivity">
|
12 | 11 |
|
13 |
| - <LinearLayout |
| 12 | + <android.support.v4.widget.NestedScrollView |
14 | 13 | android:layout_width="match_parent"
|
15 |
| - android:layout_height="match_parent" |
16 |
| - android:orientation="vertical"> |
17 |
| - <TextView |
18 |
| - android:layout_width="match_parent" |
19 |
| - android:layout_height="wrap_content" |
20 |
| - android:gravity="center" |
21 |
| - android:text="PLAN FOR" |
22 |
| - android:textSize="30sp" |
23 |
| - android:padding="20dp" |
24 |
| - android:textColor="#ffffff" |
25 |
| - android:fontFamily="cursive"/> |
| 14 | + android:layout_height="match_parent"> |
26 | 15 |
|
27 |
| - |
28 |
| - <RelativeLayout |
| 16 | + <LinearLayout |
29 | 17 | android:layout_width="match_parent"
|
30 |
| - android:layout_height="wrap_content" |
31 |
| - android:layout_weight="1"> |
| 18 | + android:layout_height="match_parent" |
| 19 | + android:orientation="vertical"> |
32 | 20 |
|
33 |
| - <android.support.v7.widget.RecyclerView |
34 |
| - android:id="@+id/recyclerView" |
| 21 | + <TextView |
35 | 22 | android:layout_width="match_parent"
|
36 |
| - android:layout_height="match_parent" |
37 |
| - android:layout_margin="16dp" |
38 |
| - android:elevation="10dp"> |
39 |
| - </android.support.v7.widget.RecyclerView> |
40 |
| - </RelativeLayout> |
41 |
| - <TextView |
42 |
| - android:layout_width="match_parent" |
43 |
| - android:layout_height="wrap_content" |
44 |
| - android:gravity="center" |
45 |
| - android:text="ONGOING..." |
46 |
| - android:textSize="30sp" |
47 |
| - android:padding="20dp" |
48 |
| - android:textColor="#ffffff" |
49 |
| - android:fontFamily="cursive"/> |
| 23 | + android:layout_height="wrap_content" |
| 24 | + android:fontFamily="cursive" |
| 25 | + android:gravity="center" |
| 26 | + android:padding="20dp" |
| 27 | + android:text="PLAN FOR" |
| 28 | + android:textColor="#ffffff" |
| 29 | + android:textSize="30sp" /> |
50 | 30 |
|
51 | 31 |
|
52 |
| - <RelativeLayout |
53 |
| - android:layout_width="match_parent" |
54 |
| - android:layout_height="wrap_content" |
55 |
| - android:layout_weight="1"> |
| 32 | + <RelativeLayout |
| 33 | + android:layout_width="match_parent" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:layout_weight="1"> |
| 36 | + |
| 37 | + <android.support.v7.widget.RecyclerView |
| 38 | + android:id="@+id/recyclerView" |
| 39 | + android:layout_width="match_parent" |
| 40 | + android:layout_height="match_parent" |
| 41 | + android:layout_margin="16dp" |
| 42 | + android:elevation="10dp"> |
| 43 | + </android.support.v7.widget.RecyclerView> |
| 44 | + </RelativeLayout> |
| 45 | + |
| 46 | + <TextView |
| 47 | + android:layout_width="match_parent" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:fontFamily="cursive" |
| 50 | + android:gravity="center" |
| 51 | + android:padding="20dp" |
| 52 | + android:text="ONGOING..." |
| 53 | + android:textColor="#ffffff" |
| 54 | + android:textSize="30sp" /> |
| 55 | + |
56 | 56 |
|
57 |
| - <android.support.v7.widget.RecyclerView |
58 |
| - android:id="@+id/recyclerView1" |
| 57 | + <RelativeLayout |
59 | 58 | android:layout_width="match_parent"
|
60 |
| - android:layout_height="match_parent" |
61 |
| - android:layout_margin="16dp" |
62 |
| - android:elevation="10dp"> |
63 |
| - </android.support.v7.widget.RecyclerView> |
64 |
| - </RelativeLayout> |
65 |
| - <TextView |
66 |
| - android:layout_width="match_parent" |
67 |
| - android:layout_height="wrap_content" |
68 |
| - android:gravity="center" |
69 |
| - android:text="COMPLETED/MISSED" |
70 |
| - android:textSize="30sp" |
71 |
| - android:padding="20dp" |
72 |
| - android:textColor="#ffffff" |
73 |
| - android:fontFamily="cursive"/> |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:layout_weight="1"> |
| 61 | + |
| 62 | + <android.support.v7.widget.RecyclerView |
| 63 | + android:id="@+id/recyclerView1" |
| 64 | + android:layout_width="match_parent" |
| 65 | + android:layout_height="match_parent" |
| 66 | + android:layout_margin="16dp" |
| 67 | + android:elevation="10dp"> |
| 68 | + </android.support.v7.widget.RecyclerView> |
| 69 | + </RelativeLayout> |
| 70 | + |
| 71 | + <TextView |
| 72 | + android:layout_width="match_parent" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:fontFamily="cursive" |
| 75 | + android:gravity="center" |
| 76 | + android:padding="20dp" |
| 77 | + android:text="COMPLETED/MISSED" |
| 78 | + android:textColor="#ffffff" |
| 79 | + android:textSize="30sp" /> |
74 | 80 |
|
75 | 81 |
|
76 |
| - <RelativeLayout |
77 |
| - android:layout_width="match_parent" |
78 |
| - android:layout_height="wrap_content" |
79 |
| - android:layout_weight="1"> |
| 82 | + <RelativeLayout |
| 83 | + android:layout_width="match_parent" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:layout_weight="1"> |
| 86 | + |
| 87 | + <android.support.v7.widget.RecyclerView |
| 88 | + android:id="@+id/recyclerView2" |
| 89 | + android:layout_width="match_parent" |
| 90 | + android:layout_height="match_parent" |
| 91 | + android:layout_margin="16dp" |
| 92 | + android:elevation="10dp"> |
| 93 | + </android.support.v7.widget.RecyclerView> |
| 94 | + </RelativeLayout> |
| 95 | + |
| 96 | + <TextView |
| 97 | + android:layout_width="match_parent" |
| 98 | + android:layout_height="wrap_content" |
| 99 | + android:fontFamily="cursive" |
| 100 | + android:gravity="center" |
| 101 | + android:padding="20dp" |
| 102 | + android:text="ACHIEVEMENTS" |
| 103 | + android:textColor="#ffffff" |
| 104 | + android:textSize="30sp" /> |
80 | 105 |
|
81 |
| - <android.support.v7.widget.RecyclerView |
82 |
| - android:id="@+id/recyclerView2" |
| 106 | + |
| 107 | + <RelativeLayout |
83 | 108 | android:layout_width="match_parent"
|
84 |
| - android:layout_height="match_parent" |
85 |
| - android:layout_margin="16dp" |
86 |
| - android:elevation="10dp"> |
87 |
| - </android.support.v7.widget.RecyclerView> |
88 |
| - </RelativeLayout> |
89 |
| - <TextView |
90 |
| - android:layout_width="match_parent" |
91 |
| - android:layout_height="wrap_content" |
92 |
| - android:gravity="center" |
93 |
| - android:text="ACHIEVEMENTS" |
94 |
| - android:textSize="30sp" |
95 |
| - android:padding="20dp" |
96 |
| - android:textColor="#ffffff" |
97 |
| - android:fontFamily="cursive"/> |
| 109 | + android:layout_height="wrap_content" |
| 110 | + android:layout_weight="1"> |
98 | 111 |
|
| 112 | + <android.support.v7.widget.RecyclerView |
| 113 | + android:id="@+id/recyclerView3" |
| 114 | + android:layout_width="match_parent" |
| 115 | + android:layout_height="match_parent" |
| 116 | + android:layout_margin="16dp" |
| 117 | + android:elevation="10dp"> |
| 118 | + </android.support.v7.widget.RecyclerView> |
| 119 | + </RelativeLayout> |
99 | 120 |
|
100 |
| - <RelativeLayout |
101 |
| - android:layout_width="match_parent" |
102 |
| - android:layout_height="wrap_content" |
103 |
| - android:layout_weight="1"> |
| 121 | + </LinearLayout> |
104 | 122 |
|
105 |
| - <android.support.v7.widget.RecyclerView |
106 |
| - android:id="@+id/recyclerView3" |
107 |
| - android:layout_width="match_parent" |
108 |
| - android:layout_height="match_parent" |
109 |
| - android:layout_margin="16dp" |
110 |
| - android:elevation="10dp"> |
111 |
| - </android.support.v7.widget.RecyclerView> |
112 |
| - </RelativeLayout> |
| 123 | + </android.support.v4.widget.NestedScrollView> |
| 124 | + |
| 125 | + <android.support.design.widget.BottomNavigationView |
| 126 | + android:id="@+id/bottom_navigation_view" |
| 127 | + android:layout_width="match_parent" |
| 128 | + android:layout_height="wrap_content" |
| 129 | + android:layout_gravity="bottom" |
| 130 | + android:background="@android:color/darker_gray" |
| 131 | + app:itemIconTint="@android:color/white" |
| 132 | + app:itemTextColor="@android:color/white" |
| 133 | + app:layout_behavior="com.example.dhananjay.dailygoals.BottomNavigationBehavior" |
| 134 | + app:menu="@menu/navigation" /> |
113 | 135 |
|
114 |
| - <android.support.design.widget.BottomNavigationView |
115 |
| - android:layout_width="match_parent" |
116 |
| - android:layout_height="60dp" |
117 |
| - app:itemIconTint="@android:color/white" |
118 |
| - app:itemTextColor="@android:color/white" |
119 |
| - app:menu="@menu/navigation"/> |
120 | 136 |
|
121 |
| - </LinearLayout> |
122 |
| -</ScrollView> |
| 137 | +</android.support.design.widget.CoordinatorLayout> |
123 | 138 |
|
0 commit comments