|
14 | 14 | ~ See the License for the specific language governing permissions and
|
15 | 15 | ~ limitations under the License.
|
16 | 16 | -->
|
17 |
| - |
18 |
| -<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | +<androidx.gridlayout.widget.GridLayout |
| 18 | + xmlns:android="http://schemas.android.com/apk/res/android" |
19 | 19 | xmlns:tools="http://schemas.android.com/tools"
|
20 | 20 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
21 | 21 | android:id="@+id/albums_fragment"
|
22 | 22 | android:layout_width="match_parent"
|
23 | 23 | android:layout_height="match_parent"
|
24 | 24 | android:padding="4dp"
|
25 | 25 | android:clipToPadding="false"
|
26 |
| - android:columnCount="2" |
| 26 | + app:columnCount="2" |
| 27 | + app:rowCount="3" |
27 | 28 | android:gravity="center_horizontal"
|
28 |
| - android:orientation="vertical" |
29 |
| - android:rowCount="3" |
| 29 | + app:orientation="vertical" |
30 | 30 | tools:targetApi="lollipop">
|
31 | 31 |
|
32 | 32 | <com.google.android.material.card.MaterialCardView
|
33 | 33 | android:layout_width="0dp"
|
34 | 34 | android:layout_height="0dp"
|
35 | 35 | android:layout_margin="4dp"
|
36 |
| - android:layout_columnWeight="1" |
37 |
| - android:layout_rowWeight="1" |
| 36 | + app:layout_rowWeight="1" |
| 37 | + app:layout_columnWeight="1" |
38 | 38 | android:clickable="true"
|
39 |
| - android:focusable="true" |
40 |
| - android:minHeight="200dp" |
41 |
| - android:minWidth="200dp"> |
| 39 | + android:focusable="true"> |
42 | 40 | <LinearLayout
|
43 | 41 | android:layout_width="match_parent"
|
44 | 42 | android:layout_height="wrap_content"
|
45 | 43 | android:orientation="vertical">
|
46 | 44 | <ImageView
|
47 | 45 | android:layout_width="match_parent"
|
48 |
| - android:layout_height="118dp" |
| 46 | + android:layout_height="180dp" |
49 | 47 | android:background="?attr/colorPrimary"
|
50 | 48 | android:contentDescription="@string/cat_transition_image_content_desc"
|
51 | 49 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
72 | 70 | android:layout_width="0dp"
|
73 | 71 | android:layout_height="0dp"
|
74 | 72 | android:layout_margin="4dp"
|
75 |
| - android:layout_columnWeight="1" |
76 |
| - android:layout_rowWeight="1" |
| 73 | + app:layout_rowWeight="1" |
| 74 | + app:layout_columnWeight="1" |
77 | 75 | android:clickable="true"
|
78 |
| - android:focusable="true" |
79 |
| - android:minHeight="200dp" |
80 |
| - android:minWidth="200dp"> |
| 76 | + android:focusable="true"> |
81 | 77 | <LinearLayout
|
82 | 78 | android:layout_width="match_parent"
|
83 | 79 | android:layout_height="wrap_content"
|
84 | 80 | android:orientation="vertical">
|
85 | 81 | <ImageView
|
86 | 82 | android:layout_width="match_parent"
|
87 |
| - android:layout_height="118dp" |
| 83 | + android:layout_height="180dp" |
88 | 84 | android:background="?attr/colorPrimary"
|
89 | 85 | android:contentDescription="@string/cat_transition_image_content_desc"
|
90 | 86 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
110 | 106 | android:layout_width="0dp"
|
111 | 107 | android:layout_height="0dp"
|
112 | 108 | android:layout_margin="4dp"
|
113 |
| - android:layout_columnWeight="1" |
114 |
| - android:layout_rowWeight="1" |
| 109 | + app:layout_rowWeight="1" |
| 110 | + app:layout_columnWeight="1" |
115 | 111 | android:clickable="true"
|
116 |
| - android:focusable="true" |
117 |
| - android:minHeight="200dp" |
118 |
| - android:minWidth="200dp"> |
| 112 | + android:focusable="true"> |
119 | 113 | <LinearLayout
|
120 | 114 | android:layout_width="match_parent"
|
121 | 115 | android:layout_height="wrap_content"
|
122 | 116 | android:orientation="vertical">
|
123 | 117 | <ImageView
|
124 | 118 | android:layout_width="match_parent"
|
125 |
| - android:layout_height="118dp" |
| 119 | + android:layout_height="180dp" |
126 | 120 | android:background="?attr/colorPrimary"
|
127 | 121 | android:contentDescription="@string/cat_transition_image_content_desc"
|
128 | 122 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
149 | 143 | android:layout_width="0dp"
|
150 | 144 | android:layout_height="0dp"
|
151 | 145 | android:layout_margin="4dp"
|
152 |
| - android:layout_columnWeight="1" |
153 |
| - android:layout_rowWeight="1" |
| 146 | + app:layout_rowWeight="1" |
| 147 | + app:layout_columnWeight="1" |
154 | 148 | android:clickable="true"
|
155 |
| - android:focusable="true" |
156 |
| - android:minHeight="200dp" |
157 |
| - android:minWidth="200dp"> |
| 149 | + android:focusable="true"> |
158 | 150 | <LinearLayout
|
159 | 151 | android:layout_width="match_parent"
|
160 | 152 | android:layout_height="wrap_content"
|
161 | 153 | android:orientation="vertical">
|
162 | 154 | <ImageView
|
163 | 155 | android:layout_width="match_parent"
|
164 |
| - android:layout_height="118dp" |
| 156 | + android:layout_height="180dp" |
165 | 157 | android:background="?attr/colorPrimary"
|
166 | 158 | android:contentDescription="@string/cat_transition_image_content_desc"
|
167 | 159 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
187 | 179 | android:layout_width="0dp"
|
188 | 180 | android:layout_height="0dp"
|
189 | 181 | android:layout_margin="4dp"
|
190 |
| - android:layout_columnWeight="1" |
191 |
| - android:layout_rowWeight="1" |
| 182 | + app:layout_rowWeight="1" |
| 183 | + app:layout_columnWeight="1" |
192 | 184 | android:clickable="true"
|
193 |
| - android:focusable="true" |
194 |
| - android:minHeight="200dp" |
195 |
| - android:minWidth="200dp"> |
| 185 | + android:focusable="true"> |
196 | 186 | <LinearLayout
|
197 | 187 | android:layout_width="match_parent"
|
198 | 188 | android:layout_height="wrap_content"
|
199 | 189 | android:orientation="vertical">
|
200 | 190 | <ImageView
|
201 | 191 | android:layout_width="match_parent"
|
202 |
| - android:layout_height="118dp" |
| 192 | + android:layout_height="180dp" |
203 | 193 | android:background="?attr/colorPrimary"
|
204 | 194 | android:contentDescription="@string/cat_transition_image_content_desc"
|
205 | 195 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
226 | 216 | android:layout_width="0dp"
|
227 | 217 | android:layout_height="0dp"
|
228 | 218 | android:layout_margin="4dp"
|
229 |
| - android:layout_columnWeight="1" |
230 |
| - android:layout_rowWeight="1" |
| 219 | + app:layout_rowWeight="1" |
| 220 | + app:layout_columnWeight="1" |
231 | 221 | android:clickable="true"
|
232 |
| - android:focusable="true" |
233 |
| - android:minHeight="200dp" |
234 |
| - android:minWidth="200dp"> |
| 222 | + android:focusable="true"> |
235 | 223 | <LinearLayout
|
236 | 224 | android:layout_width="match_parent"
|
237 | 225 | android:layout_height="wrap_content"
|
238 | 226 | android:orientation="vertical">
|
239 | 227 | <ImageView
|
240 | 228 | android:layout_width="match_parent"
|
241 |
| - android:layout_height="118dp" |
| 229 | + android:layout_height="180dp" |
242 | 230 | android:background="?attr/colorPrimary"
|
243 | 231 | android:contentDescription="@string/cat_transition_image_content_desc"
|
244 | 232 | app:srcCompat="@drawable/ic_components_24px"/>
|
|
261 | 249 | </LinearLayout>
|
262 | 250 | </com.google.android.material.card.MaterialCardView>
|
263 | 251 |
|
264 |
| - </GridLayout> |
| 252 | +</androidx.gridlayout.widget.GridLayout> |
0 commit comments