|
3 | 3 | xmlns:tools="http://schemas.android.com/tools" |
4 | 4 | android:layout_width="match_parent" |
5 | 5 | android:layout_height="wrap_content" |
6 | | - android:orientation="vertical" |
7 | | - android:paddingBottom="16dp"> |
| 6 | + android:orientation="vertical"> |
8 | 7 |
|
9 | 8 | <com.google.android.material.bottomsheet.BottomSheetDragHandleView |
10 | 9 | android:layout_width="match_parent" |
|
37 | 36 | <LinearLayout |
38 | 37 | android:layout_width="match_parent" |
39 | 38 | android:layout_height="wrap_content" |
40 | | - android:orientation="vertical"> |
| 39 | + android:orientation="vertical" |
| 40 | + android:paddingHorizontal="16dp" |
| 41 | + android:paddingBottom="16dp"> |
41 | 42 |
|
42 | 43 | <LinearLayout |
43 | | - android:id="@+id/project_settings" |
| 44 | + android:id="@+id/pin_project" |
44 | 45 | android:layout_width="match_parent" |
45 | 46 | android:layout_height="wrap_content" |
46 | | - android:background="?attr/selectableItemBackground" |
| 47 | + android:background="@drawable/project_item_shape_alone" |
47 | 48 | android:clickable="true" |
48 | 49 | android:focusable="true" |
49 | 50 | android:gravity="center_vertical" |
|
52 | 53 | android:paddingVertical="16dp"> |
53 | 54 |
|
54 | 55 | <ImageView |
| 56 | + android:id="@+id/pin_icon" |
55 | 57 | android:layout_width="24dp" |
56 | 58 | android:layout_height="24dp" |
57 | | - app:srcCompat="@drawable/ic_mtrl_tune" /> |
| 59 | + app:srcCompat="@drawable/ic_mtrl_pin" /> |
58 | 60 |
|
59 | 61 | <TextView |
| 62 | + android:id="@+id/pin_text" |
60 | 63 | android:layout_width="match_parent" |
61 | 64 | android:layout_height="wrap_content" |
62 | 65 | android:layout_marginStart="16dp" |
63 | 66 | android:gravity="center_vertical" |
64 | | - android:text="Change project settings" |
| 67 | + android:text="Pin project" |
65 | 68 | android:textAppearance="?attr/textAppearanceBodyLarge" |
66 | 69 | app:drawableEndCompat="@drawable/ic_mtrl_arrow_right" /> |
67 | 70 |
|
|
71 | 74 | android:id="@+id/project_backup" |
72 | 75 | android:layout_width="match_parent" |
73 | 76 | android:layout_height="wrap_content" |
74 | | - android:background="?attr/selectableItemBackground" |
| 77 | + android:background="@drawable/project_item_shape_top" |
75 | 78 | android:clickable="true" |
76 | 79 | android:focusable="true" |
77 | 80 | android:gravity="center_vertical" |
78 | 81 | android:orientation="horizontal" |
79 | | - android:paddingHorizontal="16dp" |
80 | | - android:paddingVertical="16dp"> |
| 82 | + android:padding="16dp" |
| 83 | + android:layout_marginTop="16dp"> |
81 | 84 |
|
82 | 85 | <ImageView |
83 | 86 | android:layout_width="24dp" |
|
100 | 103 | android:id="@+id/export_sign" |
101 | 104 | android:layout_width="match_parent" |
102 | 105 | android:layout_height="wrap_content" |
103 | | - android:background="?attr/selectableItemBackground" |
| 106 | + android:background="@drawable/project_item_shape_bottom" |
104 | 107 | android:clickable="true" |
105 | 108 | android:focusable="true" |
106 | 109 | android:gravity="center_vertical" |
107 | 110 | android:orientation="horizontal" |
108 | | - android:paddingHorizontal="16dp" |
109 | | - android:paddingVertical="16dp"> |
| 111 | + android:padding="16dp" |
| 112 | + android:layout_marginTop="2dp"> |
110 | 113 |
|
111 | 114 | <ImageView |
112 | 115 | android:layout_width="24dp" |
|
125 | 128 | </LinearLayout> |
126 | 129 |
|
127 | 130 | <LinearLayout |
128 | | - android:id="@+id/project_config" |
| 131 | + android:id="@+id/project_settings" |
129 | 132 | android:layout_width="match_parent" |
130 | 133 | android:layout_height="wrap_content" |
131 | | - android:background="?attr/selectableItemBackground" |
| 134 | + android:background="@drawable/project_item_shape_top" |
132 | 135 | android:clickable="true" |
133 | 136 | android:focusable="true" |
134 | 137 | android:gravity="center_vertical" |
135 | 138 | android:orientation="horizontal" |
136 | | - android:paddingHorizontal="16dp" |
137 | | - android:paddingVertical="16dp"> |
| 139 | + android:padding="16dp" |
| 140 | + android:layout_marginTop="16dp"> |
138 | 141 |
|
139 | 142 | <ImageView |
140 | 143 | android:layout_width="24dp" |
141 | 144 | android:layout_height="24dp" |
142 | | - app:srcCompat="@drawable/ic_mtrl_toggle" /> |
| 145 | + app:srcCompat="@drawable/ic_mtrl_tune" /> |
143 | 146 |
|
144 | 147 | <TextView |
145 | 148 | android:layout_width="match_parent" |
146 | 149 | android:layout_height="wrap_content" |
147 | 150 | android:layout_marginStart="16dp" |
148 | 151 | android:gravity="center_vertical" |
149 | | - android:text="Project configuration" |
| 152 | + android:text="Change project settings" |
150 | 153 | android:textAppearance="?attr/textAppearanceBodyLarge" |
151 | 154 | app:drawableEndCompat="@drawable/ic_mtrl_arrow_right" /> |
152 | 155 |
|
153 | 156 | </LinearLayout> |
154 | 157 |
|
155 | 158 | <LinearLayout |
156 | | - android:id="@+id/pin_project" |
| 159 | + android:id="@+id/project_config" |
157 | 160 | android:layout_width="match_parent" |
158 | 161 | android:layout_height="wrap_content" |
159 | | - android:background="?attr/selectableItemBackground" |
| 162 | + android:background="@drawable/project_item_shape_bottom" |
160 | 163 | android:clickable="true" |
161 | 164 | android:focusable="true" |
162 | 165 | android:gravity="center_vertical" |
163 | 166 | android:orientation="horizontal" |
164 | | - android:paddingHorizontal="16dp" |
165 | | - android:paddingVertical="16dp"> |
| 167 | + android:padding="16dp" |
| 168 | + android:layout_marginTop="2dp"> |
166 | 169 |
|
167 | 170 | <ImageView |
168 | | - android:id="@+id/pin_icon" |
169 | 171 | android:layout_width="24dp" |
170 | 172 | android:layout_height="24dp" |
171 | | - app:srcCompat="@drawable/ic_mtrl_pin" /> |
| 173 | + app:srcCompat="@drawable/ic_mtrl_toggle" /> |
172 | 174 |
|
173 | 175 | <TextView |
174 | | - android:id="@+id/pin_text" |
175 | 176 | android:layout_width="match_parent" |
176 | 177 | android:layout_height="wrap_content" |
177 | 178 | android:layout_marginStart="16dp" |
178 | 179 | android:gravity="center_vertical" |
179 | | - android:text="Pin project" |
| 180 | + android:text="Project configuration" |
180 | 181 | android:textAppearance="?attr/textAppearanceBodyLarge" |
181 | 182 | app:drawableEndCompat="@drawable/ic_mtrl_arrow_right" /> |
182 | 183 |
|
183 | 184 | </LinearLayout> |
184 | 185 |
|
185 | | - |
186 | 186 | <LinearLayout |
187 | 187 | android:id="@+id/project_delete" |
188 | 188 | android:layout_width="match_parent" |
189 | 189 | android:layout_height="wrap_content" |
190 | | - android:background="?attr/selectableItemBackground" |
| 190 | + android:background="@drawable/project_item_shape_alone_error" |
191 | 191 | android:clickable="true" |
192 | 192 | android:focusable="true" |
193 | 193 | android:gravity="center_vertical" |
194 | 194 | android:orientation="horizontal" |
195 | | - android:paddingHorizontal="16dp" |
196 | | - android:paddingVertical="16dp"> |
| 195 | + android:padding="16dp" |
| 196 | + android:layout_marginTop="16dp"> |
197 | 197 |
|
198 | 198 | <ImageView |
199 | 199 | android:layout_width="24dp" |
|
0 commit comments