|
295 | 295 | android:textStyle="bold" |
296 | 296 | android:textSize="14sp" /> |
297 | 297 |
|
298 | | - <!-- Control Actions --> |
299 | | - <com.google.android.material.chip.ChipGroup |
| 298 | + <!-- Safe Actions - 3 column grid --> |
| 299 | + <GridLayout |
300 | 300 | android:layout_width="match_parent" |
301 | 301 | android:layout_height="wrap_content" |
302 | 302 | android:layout_marginTop="12dp" |
303 | | - app:singleLine="false"> |
| 303 | + android:columnCount="3" |
| 304 | + android:useDefaultMargins="true"> |
304 | 305 |
|
305 | | - <com.google.android.material.chip.Chip |
| 306 | + <com.google.android.material.button.MaterialButton |
306 | 307 | android:id="@+id/btnForceStop" |
307 | | - android:layout_width="wrap_content" |
| 308 | + android:layout_width="0dp" |
308 | 309 | android:layout_height="wrap_content" |
| 310 | + android:layout_columnWeight="1" |
309 | 311 | android:text="@string/action_force_stop" |
310 | | - app:chipIcon="@drawable/ic_stop" |
311 | | - app:chipBackgroundColor="@color/surface_container" |
312 | | - app:chipStrokeWidth="1dp" |
313 | | - app:chipStrokeColor="@color/outline" /> |
| 312 | + android:textSize="11sp" |
| 313 | + app:icon="@drawable/ic_stop" |
| 314 | + app:iconSize="18dp" |
| 315 | + app:iconGravity="top" |
| 316 | + app:iconPadding="4dp" |
| 317 | + style="@style/Widget.Material3.Button.TonalButton" /> |
314 | 318 |
|
315 | | - <com.google.android.material.chip.Chip |
| 319 | + <com.google.android.material.button.MaterialButton |
316 | 320 | android:id="@+id/btnToggleEnable" |
317 | | - android:layout_width="wrap_content" |
| 321 | + android:layout_width="0dp" |
318 | 322 | android:layout_height="wrap_content" |
| 323 | + android:layout_columnWeight="1" |
319 | 324 | android:text="@string/action_freeze" |
320 | | - app:chipIcon="@drawable/ic_freeze" |
321 | | - app:chipBackgroundColor="@color/surface_container" |
322 | | - app:chipStrokeWidth="1dp" |
323 | | - app:chipStrokeColor="@color/outline" /> |
| 325 | + android:textSize="11sp" |
| 326 | + app:icon="@drawable/ic_freeze" |
| 327 | + app:iconSize="18dp" |
| 328 | + app:iconGravity="top" |
| 329 | + app:iconPadding="4dp" |
| 330 | + style="@style/Widget.Material3.Button.TonalButton" /> |
324 | 331 |
|
325 | | - <com.google.android.material.chip.Chip |
326 | | - android:id="@+id/btnToggleBackground" |
327 | | - android:layout_width="wrap_content" |
| 332 | + <com.google.android.material.button.MaterialButton |
| 333 | + android:id="@+id/btnRestrictBg" |
| 334 | + android:layout_width="0dp" |
328 | 335 | android:layout_height="wrap_content" |
| 336 | + android:layout_columnWeight="1" |
329 | 337 | android:text="@string/action_restrict_bg" |
330 | | - app:chipIcon="@drawable/ic_battery_alert" |
331 | | - app:chipBackgroundColor="@color/surface_container" |
332 | | - app:chipStrokeWidth="1dp" |
333 | | - app:chipStrokeColor="@color/outline" /> |
| 338 | + android:textSize="11sp" |
| 339 | + app:icon="@drawable/ic_battery_alert" |
| 340 | + app:iconSize="18dp" |
| 341 | + app:iconGravity="top" |
| 342 | + app:iconPadding="4dp" |
| 343 | + style="@style/Widget.Material3.Button.TonalButton" /> |
334 | 344 |
|
335 | | - <com.google.android.material.chip.Chip |
| 345 | + <com.google.android.material.button.MaterialButton |
| 346 | + android:id="@+id/btnAllowBg" |
| 347 | + android:layout_width="0dp" |
| 348 | + android:layout_height="wrap_content" |
| 349 | + android:layout_columnWeight="1" |
| 350 | + android:text="@string/action_allow_bg" |
| 351 | + android:textSize="11sp" |
| 352 | + app:icon="@drawable/ic_check_circle" |
| 353 | + app:iconSize="18dp" |
| 354 | + app:iconGravity="top" |
| 355 | + app:iconPadding="4dp" |
| 356 | + style="@style/Widget.Material3.Button.TonalButton" /> |
| 357 | + |
| 358 | + <com.google.android.material.button.MaterialButton |
336 | 359 | android:id="@+id/btnClearCache" |
337 | | - android:layout_width="wrap_content" |
| 360 | + android:layout_width="0dp" |
338 | 361 | android:layout_height="wrap_content" |
| 362 | + android:layout_columnWeight="1" |
339 | 363 | android:text="@string/action_clear_cache" |
340 | | - app:chipIcon="@drawable/ic_cleaning" |
341 | | - app:chipBackgroundColor="@color/surface_container" |
342 | | - app:chipStrokeWidth="1dp" |
343 | | - app:chipStrokeColor="@color/outline" /> |
| 364 | + android:textSize="11sp" |
| 365 | + app:icon="@drawable/ic_cleaning" |
| 366 | + app:iconSize="18dp" |
| 367 | + app:iconGravity="top" |
| 368 | + app:iconPadding="4dp" |
| 369 | + style="@style/Widget.Material3.Button.TonalButton" /> |
| 370 | + |
| 371 | + <com.google.android.material.button.MaterialButton |
| 372 | + android:id="@+id/btnOpenSettings" |
| 373 | + android:layout_width="0dp" |
| 374 | + android:layout_height="wrap_content" |
| 375 | + android:layout_columnWeight="1" |
| 376 | + android:text="@string/btn_info" |
| 377 | + android:textSize="11sp" |
| 378 | + app:icon="@drawable/ic_info" |
| 379 | + app:iconSize="18dp" |
| 380 | + app:iconGravity="top" |
| 381 | + app:iconPadding="4dp" |
| 382 | + style="@style/Widget.Material3.Button.TonalButton" /> |
| 383 | + |
| 384 | + </GridLayout> |
344 | 385 |
|
345 | | - <com.google.android.material.chip.Chip |
| 386 | + <!-- Danger Actions --> |
| 387 | + <TextView |
| 388 | + android:layout_width="wrap_content" |
| 389 | + android:layout_height="wrap_content" |
| 390 | + android:layout_marginTop="16dp" |
| 391 | + android:text="@string/action_danger_zone" |
| 392 | + android:textStyle="bold" |
| 393 | + android:textSize="12sp" |
| 394 | + android:textColor="@color/status_negative" /> |
| 395 | + |
| 396 | + <GridLayout |
| 397 | + android:layout_width="match_parent" |
| 398 | + android:layout_height="wrap_content" |
| 399 | + android:layout_marginTop="8dp" |
| 400 | + android:columnCount="3" |
| 401 | + android:useDefaultMargins="true"> |
| 402 | + |
| 403 | + <com.google.android.material.button.MaterialButton |
346 | 404 | android:id="@+id/btnClearData" |
347 | | - android:layout_width="wrap_content" |
| 405 | + android:layout_width="0dp" |
348 | 406 | android:layout_height="wrap_content" |
| 407 | + android:layout_columnWeight="1" |
349 | 408 | android:text="@string/action_clear_data" |
350 | | - app:chipIcon="@drawable/ic_delete_sweep" |
351 | | - app:chipBackgroundColor="@color/surface_container" |
352 | | - app:chipStrokeWidth="1dp" |
353 | | - app:chipStrokeColor="@color/outline" /> |
| 409 | + android:textSize="11sp" |
| 410 | + android:textColor="@color/status_negative" |
| 411 | + app:icon="@drawable/ic_delete_sweep" |
| 412 | + app:iconSize="18dp" |
| 413 | + app:iconGravity="top" |
| 414 | + app:iconPadding="4dp" |
| 415 | + app:iconTint="@color/status_negative" |
| 416 | + style="@style/Widget.Material3.Button.OutlinedButton" /> |
354 | 417 |
|
355 | | - <com.google.android.material.chip.Chip |
| 418 | + <com.google.android.material.button.MaterialButton |
356 | 419 | android:id="@+id/btnUninstall" |
357 | | - android:layout_width="wrap_content" |
| 420 | + android:layout_width="0dp" |
358 | 421 | android:layout_height="wrap_content" |
| 422 | + android:layout_columnWeight="1" |
359 | 423 | android:text="@string/action_uninstall" |
360 | | - app:chipIcon="@drawable/ic_delete" |
361 | | - app:chipBackgroundColor="@color/surface_container" |
362 | | - app:chipStrokeWidth="1dp" |
363 | | - app:chipStrokeColor="@color/status_negative" /> |
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 | | - |
375 | | - </com.google.android.material.chip.ChipGroup> |
| 424 | + android:textSize="11sp" |
| 425 | + android:textColor="@color/status_negative" |
| 426 | + app:icon="@drawable/ic_delete" |
| 427 | + app:iconSize="18dp" |
| 428 | + app:iconGravity="top" |
| 429 | + app:iconPadding="4dp" |
| 430 | + app:iconTint="@color/status_negative" |
| 431 | + style="@style/Widget.Material3.Button.OutlinedButton" /> |
| 432 | + |
| 433 | + </GridLayout> |
376 | 434 | </LinearLayout> |
0 commit comments