|
283 | 283 | android:textStyle="bold" |
284 | 284 | android:textSize="14sp" /> |
285 | 285 |
|
286 | | - <!-- Row 1: Force Stop, Freeze/Unfreeze --> |
| 286 | + <!-- Primary Actions: Launch & Settings --> |
287 | 287 | <LinearLayout |
288 | 288 | android:layout_width="match_parent" |
289 | 289 | android:layout_height="wrap_content" |
290 | 290 | android:layout_marginTop="12dp" |
291 | 291 | android:orientation="horizontal"> |
292 | 292 | <Button |
293 | | - android:id="@+id/btnForceStop" |
| 293 | + android:id="@+id/btnLaunchApp" |
294 | 294 | android:layout_width="0dp" |
295 | 295 | android:layout_height="wrap_content" |
296 | 296 | android:layout_weight="1" |
297 | | - android:text="@string/action_force_stop" |
298 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
| 297 | + android:text="@string/action_launch" |
| 298 | + style="@style/Widget.Material3.Button.TonalButton" /> |
299 | 299 | <Button |
300 | | - android:id="@+id/btnToggleEnable" |
| 300 | + android:id="@+id/btnOpenSettings" |
301 | 301 | android:layout_width="0dp" |
302 | 302 | android:layout_height="wrap_content" |
303 | 303 | android:layout_weight="1" |
304 | 304 | android:layout_marginStart="8dp" |
305 | | - android:text="@string/action_disable" |
306 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
| 305 | + android:text="@string/btn_info" |
| 306 | + style="@style/Widget.Material3.Button.TonalButton" /> |
307 | 307 | </LinearLayout> |
308 | 308 |
|
309 | | - <!-- Row 2: Background, Uninstall --> |
310 | | - <LinearLayout |
| 309 | + <!-- Control Actions --> |
| 310 | + <com.google.android.material.chip.ChipGroup |
311 | 311 | android:layout_width="match_parent" |
312 | 312 | android:layout_height="wrap_content" |
313 | | - android:layout_marginTop="8dp" |
314 | | - android:orientation="horizontal"> |
315 | | - <Button |
| 313 | + android:layout_marginTop="12dp" |
| 314 | + app:singleLine="false"> |
| 315 | + |
| 316 | + <com.google.android.material.chip.Chip |
| 317 | + android:id="@+id/btnForceStop" |
| 318 | + android:layout_width="wrap_content" |
| 319 | + android:layout_height="wrap_content" |
| 320 | + android:text="@string/action_force_stop" |
| 321 | + app:chipBackgroundColor="@color/surface_container" |
| 322 | + app:chipStrokeWidth="1dp" |
| 323 | + app:chipStrokeColor="@color/outline" /> |
| 324 | + |
| 325 | + <com.google.android.material.chip.Chip |
| 326 | + android:id="@+id/btnToggleEnable" |
| 327 | + android:layout_width="wrap_content" |
| 328 | + android:layout_height="wrap_content" |
| 329 | + android:text="@string/action_freeze" |
| 330 | + app:chipBackgroundColor="@color/surface_container" |
| 331 | + app:chipStrokeWidth="1dp" |
| 332 | + app:chipStrokeColor="@color/outline" /> |
| 333 | + |
| 334 | + <com.google.android.material.chip.Chip |
316 | 335 | android:id="@+id/btnToggleBackground" |
317 | | - android:layout_width="0dp" |
| 336 | + android:layout_width="wrap_content" |
318 | 337 | android:layout_height="wrap_content" |
319 | | - android:layout_weight="1" |
320 | 338 | android:text="@string/action_restrict_bg" |
321 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
322 | | - <Button |
323 | | - android:id="@+id/btnUninstall" |
324 | | - android:layout_width="0dp" |
325 | | - android:layout_height="wrap_content" |
326 | | - android:layout_weight="1" |
327 | | - android:layout_marginStart="8dp" |
328 | | - android:text="@string/action_uninstall" |
329 | | - android:textColor="@color/status_negative" |
330 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
331 | | - </LinearLayout> |
| 339 | + app:chipBackgroundColor="@color/surface_container" |
| 340 | + app:chipStrokeWidth="1dp" |
| 341 | + app:chipStrokeColor="@color/outline" /> |
332 | 342 |
|
333 | | - <!-- Row 3: Clear Cache, Clear Data --> |
334 | | - <LinearLayout |
335 | | - android:layout_width="match_parent" |
336 | | - android:layout_height="wrap_content" |
337 | | - android:layout_marginTop="8dp" |
338 | | - android:orientation="horizontal"> |
339 | | - <Button |
| 343 | + <com.google.android.material.chip.Chip |
340 | 344 | android:id="@+id/btnClearCache" |
341 | | - android:layout_width="0dp" |
| 345 | + android:layout_width="wrap_content" |
342 | 346 | android:layout_height="wrap_content" |
343 | | - android:layout_weight="1" |
344 | 347 | android:text="@string/action_clear_cache" |
345 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
346 | | - <Button |
| 348 | + app:chipBackgroundColor="@color/surface_container" |
| 349 | + app:chipStrokeWidth="1dp" |
| 350 | + app:chipStrokeColor="@color/outline" /> |
| 351 | + |
| 352 | + <com.google.android.material.chip.Chip |
347 | 353 | android:id="@+id/btnClearData" |
348 | | - android:layout_width="0dp" |
| 354 | + android:layout_width="wrap_content" |
349 | 355 | android:layout_height="wrap_content" |
350 | | - android:layout_weight="1" |
351 | | - android:layout_marginStart="8dp" |
352 | 356 | android:text="@string/action_clear_data" |
353 | | - android:textColor="@color/warning_color" |
354 | | - style="@style/Widget.Material3.Button.OutlinedButton" /> |
355 | | - </LinearLayout> |
| 357 | + app:chipBackgroundColor="@color/surface_container" |
| 358 | + app:chipStrokeWidth="1dp" |
| 359 | + app:chipStrokeColor="@color/outline" /> |
356 | 360 |
|
357 | | - <!-- Row 4: Launch, Open Settings --> |
358 | | - <LinearLayout |
359 | | - android:layout_width="match_parent" |
360 | | - android:layout_height="wrap_content" |
361 | | - android:layout_marginTop="8dp" |
362 | | - android:orientation="horizontal"> |
363 | | - <Button |
364 | | - android:id="@+id/btnLaunchApp" |
365 | | - android:layout_width="0dp" |
366 | | - android:layout_height="wrap_content" |
367 | | - android:layout_weight="1" |
368 | | - android:text="@string/action_launch" |
369 | | - style="@style/Widget.Material3.Button.TonalButton" /> |
370 | | - <Button |
371 | | - android:id="@+id/btnOpenSettings" |
372 | | - android:layout_width="0dp" |
| 361 | + <com.google.android.material.chip.Chip |
| 362 | + android:id="@+id/btnUninstall" |
| 363 | + android:layout_width="wrap_content" |
373 | 364 | android:layout_height="wrap_content" |
374 | | - android:layout_weight="1" |
375 | | - android:layout_marginStart="8dp" |
376 | | - android:text="@string/detail_open_settings" |
377 | | - style="@style/Widget.Material3.Button.TonalButton" /> |
378 | | - </LinearLayout> |
| 365 | + android:text="@string/action_uninstall" |
| 366 | + app:chipBackgroundColor="@color/surface_container" |
| 367 | + app:chipStrokeWidth="1dp" |
| 368 | + app:chipStrokeColor="@color/status_negative" /> |
| 369 | + |
| 370 | + </com.google.android.material.chip.ChipGroup> |
379 | 371 | </LinearLayout> |
0 commit comments