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