|
15 | 15 |
|
16 | 16 | <ImageView |
17 | 17 | android:id="@+id/ivAppIcon" |
18 | | - android:layout_width="64dp" |
19 | | - android:layout_height="64dp" |
| 18 | + android:layout_width="56dp" |
| 19 | + android:layout_height="56dp" |
20 | 20 | android:contentDescription="@string/app_icon_desc" /> |
21 | 21 |
|
22 | 22 | <LinearLayout |
|
30 | 30 | android:id="@+id/tvAppName" |
31 | 31 | android:layout_width="wrap_content" |
32 | 32 | android:layout_height="wrap_content" |
33 | | - android:textSize="20sp" |
| 33 | + android:textSize="18sp" |
34 | 34 | android:textStyle="bold" |
35 | | - android:maxLines="2" |
| 35 | + android:maxLines="1" |
36 | 36 | android:ellipsize="end" /> |
37 | 37 |
|
38 | 38 | <TextView |
39 | 39 | android:id="@+id/tvVersion" |
40 | 40 | android:layout_width="wrap_content" |
41 | 41 | android:layout_height="wrap_content" |
42 | 42 | android:textColor="@color/on_surface_secondary" |
43 | | - android:textSize="14sp" /> |
| 43 | + android:textSize="13sp" /> |
44 | 44 |
|
45 | 45 | <TextView |
46 | 46 | android:id="@+id/tvAppType" |
47 | 47 | android:layout_width="wrap_content" |
48 | 48 | android:layout_height="wrap_content" |
49 | | - android:textSize="12sp" |
| 49 | + android:textSize="11sp" |
50 | 50 | android:textStyle="bold" /> |
51 | 51 | </LinearLayout> |
| 52 | + |
| 53 | + <com.google.android.material.button.MaterialButton |
| 54 | + android:id="@+id/btnLaunchApp" |
| 55 | + android:layout_width="48dp" |
| 56 | + android:layout_height="48dp" |
| 57 | + android:insetTop="0dp" |
| 58 | + android:insetBottom="0dp" |
| 59 | + app:icon="@drawable/ic_launch" |
| 60 | + app:iconGravity="textStart" |
| 61 | + app:iconPadding="0dp" |
| 62 | + style="@style/Widget.Material3.Button.TonalButton" |
| 63 | + android:contentDescription="@string/action_launch" /> |
52 | 64 | </LinearLayout> |
53 | 65 |
|
54 | 66 | <!-- Package Name --> |
|
283 | 295 | android:textStyle="bold" |
284 | 296 | android:textSize="14sp" /> |
285 | 297 |
|
286 | | - <!-- Primary Actions: Launch & Settings --> |
287 | | - <LinearLayout |
288 | | - android:layout_width="match_parent" |
289 | | - android:layout_height="wrap_content" |
290 | | - android:layout_marginTop="12dp" |
291 | | - android:orientation="horizontal"> |
292 | | - <Button |
293 | | - android:id="@+id/btnLaunchApp" |
294 | | - android:layout_width="0dp" |
295 | | - android:layout_height="wrap_content" |
296 | | - android:layout_weight="1" |
297 | | - android:text="@string/action_launch" |
298 | | - style="@style/Widget.Material3.Button.TonalButton" /> |
299 | | - <Button |
300 | | - android:id="@+id/btnOpenSettings" |
301 | | - android:layout_width="0dp" |
302 | | - android:layout_height="wrap_content" |
303 | | - android:layout_weight="1" |
304 | | - android:layout_marginStart="8dp" |
305 | | - android:text="@string/btn_info" |
306 | | - style="@style/Widget.Material3.Button.TonalButton" /> |
307 | | - </LinearLayout> |
308 | | - |
309 | 298 | <!-- Control Actions --> |
310 | 299 | <com.google.android.material.chip.ChipGroup |
311 | 300 | android:layout_width="match_parent" |
|
318 | 307 | android:layout_width="wrap_content" |
319 | 308 | android:layout_height="wrap_content" |
320 | 309 | android:text="@string/action_force_stop" |
| 310 | + app:chipIcon="@drawable/ic_stop" |
321 | 311 | app:chipBackgroundColor="@color/surface_container" |
322 | 312 | app:chipStrokeWidth="1dp" |
323 | 313 | app:chipStrokeColor="@color/outline" /> |
|
327 | 317 | android:layout_width="wrap_content" |
328 | 318 | android:layout_height="wrap_content" |
329 | 319 | android:text="@string/action_freeze" |
| 320 | + app:chipIcon="@drawable/ic_freeze" |
330 | 321 | app:chipBackgroundColor="@color/surface_container" |
331 | 322 | app:chipStrokeWidth="1dp" |
332 | 323 | app:chipStrokeColor="@color/outline" /> |
|
336 | 327 | android:layout_width="wrap_content" |
337 | 328 | android:layout_height="wrap_content" |
338 | 329 | android:text="@string/action_restrict_bg" |
| 330 | + app:chipIcon="@drawable/ic_battery_alert" |
339 | 331 | app:chipBackgroundColor="@color/surface_container" |
340 | 332 | app:chipStrokeWidth="1dp" |
341 | 333 | app:chipStrokeColor="@color/outline" /> |
|
345 | 337 | android:layout_width="wrap_content" |
346 | 338 | android:layout_height="wrap_content" |
347 | 339 | android:text="@string/action_clear_cache" |
| 340 | + app:chipIcon="@drawable/ic_cleaning" |
348 | 341 | app:chipBackgroundColor="@color/surface_container" |
349 | 342 | app:chipStrokeWidth="1dp" |
350 | 343 | app:chipStrokeColor="@color/outline" /> |
|
354 | 347 | android:layout_width="wrap_content" |
355 | 348 | android:layout_height="wrap_content" |
356 | 349 | android:text="@string/action_clear_data" |
| 350 | + app:chipIcon="@drawable/ic_delete_sweep" |
357 | 351 | app:chipBackgroundColor="@color/surface_container" |
358 | 352 | app:chipStrokeWidth="1dp" |
359 | 353 | app:chipStrokeColor="@color/outline" /> |
|
363 | 357 | android:layout_width="wrap_content" |
364 | 358 | android:layout_height="wrap_content" |
365 | 359 | android:text="@string/action_uninstall" |
| 360 | + app:chipIcon="@drawable/ic_delete" |
366 | 361 | app:chipBackgroundColor="@color/surface_container" |
367 | 362 | app:chipStrokeWidth="1dp" |
368 | 363 | app:chipStrokeColor="@color/status_negative" /> |
369 | 364 |
|
| 365 | + <com.google.android.material.chip.Chip |
| 366 | + android:id="@+id/btnOpenSettings" |
| 367 | + android:layout_width="wrap_content" |
| 368 | + android:layout_height="wrap_content" |
| 369 | + android:text="@string/btn_info" |
| 370 | + app:chipIcon="@drawable/ic_info" |
| 371 | + app:chipBackgroundColor="@color/surface_container" |
| 372 | + app:chipStrokeWidth="1dp" |
| 373 | + app:chipStrokeColor="@color/outline" /> |
| 374 | + |
370 | 375 | </com.google.android.material.chip.ChipGroup> |
371 | 376 | </LinearLayout> |
0 commit comments