|
16 | 16 | <LinearLayout |
17 | 17 | android:layout_width="match_parent" |
18 | 18 | android:layout_height="wrap_content" |
19 | | - android:gravity="center_vertical" |
20 | | - android:orientation="horizontal"> |
| 19 | + android:orientation="vertical"> |
21 | 20 |
|
22 | | - <View |
23 | | - android:id="@+id/selected_view" |
24 | | - android:layout_width="4dp" |
25 | | - android:layout_height="match_parent" |
26 | | - android:layout_marginVertical="10dp" |
27 | | - android:background="?attr/colorPrimary" |
28 | | - android:visibility="invisible" |
| 21 | + <com.google.android.material.progressindicator.LinearProgressIndicator |
| 22 | + android:id="@+id/update_progress" |
| 23 | + android:layout_width="match_parent" |
| 24 | + android:layout_height="wrap_content" |
| 25 | + android:indeterminate="true" |
| 26 | + android:visibility="gone" |
| 27 | + app:indicatorColor="?attr/colorPrimary" |
29 | 28 | tools:visibility="visible" /> |
30 | 29 |
|
31 | 30 | <LinearLayout |
32 | | - android:layout_width="0dp" |
| 31 | + android:layout_width="match_parent" |
33 | 32 | android:layout_height="wrap_content" |
34 | | - android:layout_weight="1" |
35 | | - android:orientation="vertical" |
36 | | - android:paddingStart="14dp" |
37 | | - android:paddingTop="12dp" |
38 | | - android:paddingEnd="8dp" |
39 | | - android:paddingBottom="12dp"> |
| 33 | + android:gravity="center_vertical" |
| 34 | + android:orientation="horizontal"> |
40 | 35 |
|
41 | | - <TextView |
42 | | - android:id="@+id/tv_name" |
43 | | - android:layout_width="match_parent" |
44 | | - android:layout_height="wrap_content" |
45 | | - android:ellipsize="end" |
46 | | - android:maxLines="1" |
47 | | - android:textColor="?attr/colorOnSurface" |
48 | | - android:textSize="16sp" |
49 | | - android:textStyle="bold" |
50 | | - tools:text="My Subscription" /> |
| 36 | + <View |
| 37 | + android:id="@+id/selected_view" |
| 38 | + android:layout_width="4dp" |
| 39 | + android:layout_height="match_parent" |
| 40 | + android:layout_marginVertical="12dp" |
| 41 | + android:background="?attr/colorPrimary" |
| 42 | + android:visibility="invisible" |
| 43 | + tools:visibility="visible" /> |
51 | 44 |
|
52 | | - <TextView |
53 | | - android:id="@+id/tv_meta" |
54 | | - android:layout_width="match_parent" |
| 45 | + <LinearLayout |
| 46 | + android:layout_width="0dp" |
55 | 47 | android:layout_height="wrap_content" |
56 | | - android:layout_marginTop="2dp" |
57 | | - android:textColor="?attr/colorOnSurfaceVariant" |
58 | | - android:textSize="12sp" |
59 | | - tools:text="Selected · Subscription" /> |
| 48 | + android:layout_weight="1" |
| 49 | + android:orientation="vertical" |
| 50 | + android:paddingStart="14dp" |
| 51 | + android:paddingTop="12dp" |
| 52 | + android:paddingEnd="8dp" |
| 53 | + android:paddingBottom="12dp"> |
60 | 54 |
|
61 | | - <TextView |
62 | | - android:id="@+id/tv_traffic" |
63 | | - android:layout_width="match_parent" |
64 | | - android:layout_height="wrap_content" |
65 | | - android:layout_marginTop="2dp" |
66 | | - android:textColor="?attr/colorOnSurfaceVariant" |
67 | | - android:textSize="12sp" |
68 | | - android:visibility="gone" |
69 | | - tools:text="↑ 1.2 MiB ↓ 8.4 MiB" |
70 | | - tools:visibility="visible" /> |
71 | | - </LinearLayout> |
| 55 | + <TextView |
| 56 | + android:id="@+id/tv_name" |
| 57 | + android:layout_width="match_parent" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:ellipsize="end" |
| 60 | + android:maxLines="1" |
| 61 | + android:textColor="?attr/colorOnSurface" |
| 62 | + android:textSize="16sp" |
| 63 | + android:textStyle="bold" |
| 64 | + tools:text="My Subscription" /> |
72 | 65 |
|
73 | | - <com.google.android.material.button.MaterialButton |
74 | | - android:id="@+id/btn_share" |
75 | | - style="@style/Widget.Material3.Button.IconButton" |
76 | | - android:layout_width="wrap_content" |
77 | | - android:layout_height="wrap_content" |
78 | | - android:contentDescription="@string/action_share" |
79 | | - app:icon="@drawable/ic_social_share" |
80 | | - app:iconTint="?attr/colorPrimary" /> |
| 66 | + <TextView |
| 67 | + android:id="@+id/tv_meta" |
| 68 | + android:layout_width="match_parent" |
| 69 | + android:layout_height="wrap_content" |
| 70 | + android:layout_marginTop="2dp" |
| 71 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 72 | + android:textSize="12sp" |
| 73 | + tools:text="Selected · Subscription" /> |
81 | 74 |
|
82 | | - <com.google.android.material.button.MaterialButton |
83 | | - android:id="@+id/btn_update" |
84 | | - style="@style/Widget.Material3.Button.TextButton" |
85 | | - android:layout_width="wrap_content" |
86 | | - android:layout_height="wrap_content" |
87 | | - android:minWidth="0dp" |
88 | | - android:text="@string/action_update" /> |
| 75 | + <TextView |
| 76 | + android:id="@+id/tv_traffic" |
| 77 | + android:layout_width="match_parent" |
| 78 | + android:layout_height="wrap_content" |
| 79 | + android:layout_marginTop="2dp" |
| 80 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 81 | + android:textSize="12sp" |
| 82 | + android:visibility="gone" |
| 83 | + tools:text="↑ 1.2 MiB ↓ 8.4 MiB" |
| 84 | + tools:visibility="visible" /> |
| 85 | + </LinearLayout> |
89 | 86 |
|
90 | | - <com.google.android.material.button.MaterialButton |
91 | | - android:id="@+id/btn_delete" |
92 | | - style="@style/Widget.Material3.Button.TextButton" |
93 | | - android:layout_width="wrap_content" |
94 | | - android:layout_height="wrap_content" |
95 | | - android:layout_marginEnd="4dp" |
96 | | - android:minWidth="0dp" |
97 | | - android:text="@string/action_delete" |
98 | | - android:textColor="?attr/colorError" /> |
| 87 | + <com.google.android.material.button.MaterialButton |
| 88 | + android:id="@+id/btn_update" |
| 89 | + style="@style/Widget.Material3.Button.TextButton" |
| 90 | + android:layout_width="wrap_content" |
| 91 | + android:layout_height="wrap_content" |
| 92 | + android:minWidth="0dp" |
| 93 | + android:text="@string/action_update" /> |
| 94 | + |
| 95 | + <com.google.android.material.button.MaterialButton |
| 96 | + android:id="@+id/btn_overflow" |
| 97 | + style="@style/Widget.Material3.Button.IconButton" |
| 98 | + android:layout_width="wrap_content" |
| 99 | + android:layout_height="wrap_content" |
| 100 | + android:layout_marginEnd="4dp" |
| 101 | + android:contentDescription="@string/action_more" |
| 102 | + app:icon="@drawable/ic_baseline_more_vert_24" |
| 103 | + app:iconTint="?attr/colorOnSurfaceVariant" /> |
| 104 | + </LinearLayout> |
99 | 105 | </LinearLayout> |
100 | 106 | </com.google.android.material.card.MaterialCardView> |
0 commit comments