|
6 | 6 | android:layout_height="180dp" |
7 | 7 | android:layout_marginEnd="8dp"> |
8 | 8 |
|
9 | | - <androidx.appcompat.widget.LinearLayoutCompat |
| 9 | + <androidx.constraintlayout.widget.ConstraintLayout |
10 | 10 | android:layout_width="match_parent" |
11 | | - android:layout_height="wrap_content" |
12 | | - android:orientation="vertical" |
| 11 | + android:layout_height="match_parent" |
13 | 12 | android:padding="8dp"> |
14 | 13 |
|
15 | 14 | <androidx.appcompat.widget.AppCompatImageView |
16 | 15 | android:id="@+id/app_icon" |
17 | 16 | android:layout_width="48dp" |
18 | 17 | android:layout_height="48dp" |
19 | | - android:layout_gravity="center_horizontal" |
20 | 18 | android:contentDescription="@null" |
21 | | - android:src="@drawable/ic_android" /> |
| 19 | + android:src="@drawable/ic_android" |
| 20 | + app:layout_constraintEnd_toEndOf="parent" |
| 21 | + app:layout_constraintStart_toStartOf="parent" |
| 22 | + app:layout_constraintTop_toTopOf="parent" /> |
22 | 23 |
|
23 | 24 | <com.google.android.material.textview.MaterialTextView |
24 | 25 | android:id="@+id/app_name" |
25 | | - android:layout_width="match_parent" |
| 26 | + android:layout_width="0dp" |
26 | 27 | android:layout_height="wrap_content" |
27 | 28 | android:layout_marginTop="8dp" |
28 | 29 | android:maxLines="2" |
29 | 30 | android:ellipsize="end" |
30 | 31 | android:text="App" |
31 | | - android:textAppearance="@style/TextAppearance.Material3.BodyMedium" /> |
| 32 | + android:textAppearance="@style/TextAppearance.Material3.BodyMedium" |
| 33 | + app:layout_constraintEnd_toEndOf="parent" |
| 34 | + app:layout_constraintStart_toStartOf="parent" |
| 35 | + app:layout_constraintTop_toBottomOf="@id/app_icon" /> |
32 | 36 |
|
33 | 37 | <com.google.android.material.textview.MaterialTextView |
34 | 38 | android:id="@+id/app_description" |
35 | | - android:layout_width="match_parent" |
| 39 | + android:layout_width="0dp" |
36 | 40 | android:layout_height="wrap_content" |
37 | 41 | android:text="Description" |
38 | | - android:textAppearance="@style/TextAppearance.Material3.BodySmall" /> |
| 42 | + android:textAppearance="@style/TextAppearance.Material3.BodySmall" |
| 43 | + app:layout_constraintEnd_toEndOf="parent" |
| 44 | + app:layout_constraintStart_toStartOf="parent" |
| 45 | + app:layout_constraintTop_toBottomOf="@id/app_name" /> |
39 | 46 |
|
40 | 47 | <com.google.android.material.button.MaterialButton |
41 | 48 | android:id="@+id/app_button" |
42 | 49 | android:layout_width="wrap_content" |
43 | 50 | android:layout_height="wrap_content" |
44 | 51 | android:layout_marginTop="8dp" |
45 | 52 | android:text="@string/get_on_google_play" |
46 | | - app:icon="@drawable/ic_play_store_tinted" /> |
47 | | - </androidx.appcompat.widget.LinearLayoutCompat> |
| 53 | + app:icon="@drawable/ic_play_store_tinted" |
| 54 | + app:layout_constraintBottom_toBottomOf="parent" |
| 55 | + app:layout_constraintEnd_toEndOf="parent" |
| 56 | + app:layout_constraintStart_toStartOf="parent" /> |
| 57 | + </androidx.constraintlayout.widget.ConstraintLayout> |
48 | 58 | </com.google.android.material.card.MaterialCardView> |
0 commit comments