Port packed layout solver and overhaul layout settings

This commit is contained in:
ajp_anton
2026-05-13 03:06:17 +00:00
parent ba3b92d4d0
commit 06cc2e21d9
29 changed files with 5241 additions and 1302 deletions
@@ -73,6 +73,81 @@
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="0.03"
android:text="@string/debug_section_android_notification_style"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<TextView
android:id="@+id/debug_notification_style_current"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<TextView
android:id="@+id/debug_notification_style_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/debug_notification_style_hint"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/debug_notification_style_cards"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/debug_notification_style_cards" />
<com.google.android.material.button.MaterialButton
android:id="@+id/debug_notification_style_icons"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:text="@string/debug_notification_style_icons" />
<com.google.android.material.button.MaterialButton
android:id="@+id/debug_notification_style_dot"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:text="@string/debug_notification_style_dot" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
+7 -16
View File
@@ -17,6 +17,7 @@
android:textAppearance="?attr/textAppearanceHeadline5" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_master_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -49,6 +50,7 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_clock_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -261,6 +263,7 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_chip_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -474,6 +477,7 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_notif_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -698,18 +702,11 @@
android:paddingEnd="0dp"
android:text="0" />
</LinearLayout>
<CheckBox
android:id="@+id/notif_show_dot_if_truncated"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:checked="true"
android:text="@string/layout_show_dot_if_truncated" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_status_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -934,18 +931,11 @@
android:paddingEnd="0dp"
android:text="0" />
</LinearLayout>
<CheckBox
android:id="@+id/status_show_dot_if_truncated"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:checked="true"
android:text="@string/layout_show_dot_if_truncated" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_ordering_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -1031,6 +1021,7 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/layout_padding_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -1,650 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notification_icons_title"
android:textAppearance="?attr/textAppearanceHeadline5" />
<TextView
android:id="@+id/notification_icons_unlocked_obsolete_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/notification_icons_unlocked_obsolete_hint"
android:textAppearance="?attr/textAppearanceBody2"
android:visibility="gone" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/notification_icons_unlocked_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/section_unlocked"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textAllCaps="true"
android:letterSpacing="0.03"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/label_max_icons_per_row"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/unlocked_max_icons_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/unlocked_max_icons_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/unlocked_max_icons_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/unlocked_max_icons_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<TextView
android:id="@+id/notification_icons_layout_required_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/notification_icons_layout_required_hint"
android:textAppearance="?attr/textAppearanceBody2"
android:visibility="gone" />
<LinearLayout
android:id="@+id/notification_icons_layout_sections"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/section_cards_mode"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textAllCaps="true"
android:letterSpacing="0.03"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/section_aod"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_max_icons_per_row"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_aod_max_icons_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/cards_aod_max_icons_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_aod_max_icons_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/cards_aod_max_icons_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/label_max_rows"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_aod_max_rows_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/cards_aod_max_rows_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_aod_max_rows_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/cards_aod_max_rows_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/cards_aod_even_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_even_distribution" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/cards_aod_limit_width_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="@string/label_limit_screen_width" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/section_lockscreen"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_max_icons_per_row"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_lock_max_icons_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/cards_lock_max_icons_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_lock_max_icons_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/cards_lock_max_icons_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/label_max_rows"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_lock_max_rows_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/cards_lock_max_rows_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/cards_lock_max_rows_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/cards_lock_max_rows_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/cards_lock_even_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_even_distribution" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/cards_lock_limit_width_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="@string/label_limit_screen_width" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardUseCompatPadding="true"
app:strokeColor="@color/sbt_card_outline"
app:strokeWidth="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/section_icons_mode"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textAllCaps="true"
android:letterSpacing="0.03"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/section_aod"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_max_icons_per_row"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_aod_max_icons_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/icons_aod_max_icons_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_aod_max_icons_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/icons_aod_max_icons_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/label_max_rows"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_aod_max_rows_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/icons_aod_max_rows_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_aod_max_rows_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/icons_aod_max_rows_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/icons_aod_even_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_even_distribution" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/icons_aod_cutout_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/label_cutout_aware" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/section_lockscreen"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_max_icons_per_row"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_lock_max_icons_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/icons_lock_max_icons_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_lock_max_icons_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/icons_lock_max_icons_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/label_max_rows"
android:textAppearance="?attr/textAppearanceBody2" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_lock_max_rows_minus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="-" />
<EditText
android:id="@+id/icons_lock_max_rows_input"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:ems="3"
android:gravity="center"
android:importantForAutofill="no"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLines="1"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceSubtitle2" />
<com.google.android.material.button.MaterialButton
android:id="@+id/icons_lock_max_rows_plus"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:text="+" />
</LinearLayout>
<com.google.android.material.slider.Slider
android:id="@+id/icons_lock_max_rows_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/icons_lock_even_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/label_even_distribution" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/icons_lock_cutout_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/label_cutout_aware" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</LinearLayout>
</ScrollView>
+10 -2
View File
@@ -6,9 +6,17 @@
android:checkable="true"
android:title="@string/nav_layout" />
<item
android:id="@+id/nav_notification_icons"
android:id="@+id/nav_layout_unlocked"
android:checkable="true"
android:title="@string/nav_layout_notification_icons" />
android:title="@string/nav_layout_unlocked" />
<item
android:id="@+id/nav_layout_lockscreen"
android:checkable="true"
android:title="@string/nav_layout_lockscreen" />
<item
android:id="@+id/nav_layout_aod"
android:checkable="true"
android:title="@string/nav_layout_aod" />
<item
android:id="@+id/nav_block_app_notification_icons"
android:checkable="true"
+3
View File
@@ -0,0 +1,3 @@
<resources>
<item name="sbt_debug_container_bounds" type="id" />
</resources>
+26 -10
View File
@@ -5,13 +5,14 @@
<string name="nav_close">Close navigation</string>
<string name="nav_icons_debug">Debugging</string>
<string name="nav_system_icons">Hide status icons</string>
<string name="nav_layout_notification_icons">&#160;&#160;&#160;&#160;Notification icons</string>
<string name="nav_layout_hide_notification_icons">&#160;&#160;&#160;&#160;Hide notification icons</string>
<string name="nav_layout_hide_status_icons">&#160;&#160;&#160;&#160;Hide status icons</string>
<string name="nav_clock">Clock</string>
<string name="nav_layout">Layout</string>
<string name="nav_layout_unlocked">&#160;&#160;&#160;&#160;Unlocked</string>
<string name="nav_layout_lockscreen">&#160;&#160;&#160;&#160;Lockscreen</string>
<string name="nav_layout_aod">&#160;&#160;&#160;&#160;AOD</string>
<string name="nav_battery_bar">Battery bar</string>
<string name="nav_notification_icons">Notification icons layout</string>
<string name="nav_block_app_notification_icons">Hide notification icons</string>
<string name="nav_status_chips">Status chips</string>
<string name="nav_misc">Misc</string>
@@ -29,6 +30,15 @@
<string name="debug_restart_systemui">Restart SystemUI</string>
<string name="debug_restart_systemui_started">SystemUI restart requested.</string>
<string name="debug_restart_systemui_failed">Could not restart SystemUI. Root shell failed.</string>
<string name="debug_section_android_notification_style">Android notification style</string>
<string name="debug_notification_style_current">Current: %1$s</string>
<string name="debug_notification_style_hint">Temporary control for Samsung lockscreen/AOD notification style. Writes use root shell.</string>
<string name="debug_notification_style_cards">Cards</string>
<string name="debug_notification_style_icons">Icons</string>
<string name="debug_notification_style_dot">Dot</string>
<string name="debug_notification_style_unknown">unknown</string>
<string name="debug_notification_style_write_failed">Could not write notification style. Root shell failed.</string>
<string name="debug_notification_style_write_done">Notification style changed.</string>
<string name="debug_section_notification_icons">Notification icons</string>
<string name="debug_cycle_icons_label">Cycle debug icons</string>
<string name="debug_cycle_icons_hint">Cycles visible debug icons between 0 and the configured count every 2 seconds.</string>
@@ -151,21 +161,27 @@
<string name="battery_bar_threshold_reordered">That threshold moved to a new position in the list.</string>
<string name="battery_bar_threshold_charge_note">Leave the field empty and press OK for \"Same as discharge\", or use the button below for \"Same as default\".</string>
<string name="clock_title">Clock</string>
<string name="layout_title">Layout</string>
<string name="layout_home_title">Layout</string>
<string name="layout_title">Unlocked</string>
<string name="clock_master_toggles_title">Master toggles</string>
<string name="layout_master_toggle_title">Master toggle</string>
<string name="clock_enabled">Use custom clock</string>
<string name="layout_enabled">Use custom layout</string>
<string name="clock_position_title">Clock position</string>
<string name="layout_clock_position_title">Clock position</string>
<string name="layout_chip_position_title">Status chip position</string>
<string name="layout_notification_position_title">Notification icons position</string>
<string name="layout_status_position_title">Status icons position</string>
<string name="layout_show_dot_if_truncated">Show dot if truncated</string>
<string name="layout_clock_position_title">Clock</string>
<string name="layout_chip_position_title">Status chip</string>
<string name="layout_notification_position_title">Notification icons</string>
<string name="layout_status_position_title">Status icons</string>
<string name="layout_item_enabled">Enabled</string>
<string name="layout_icon_container_count">Number of containers</string>
<string name="layout_locked_notifications_title">Locked notifications mode</string>
<string name="layout_locked_notifications_hint">Mirrors the Samsung notification display style for AOD and lockscreen.</string>
<string name="layout_locked_notifications_none">None</string>
<string name="layout_locked_notifications_none_disabled">None is remembered, but Layout OFF uses Dot.</string>
<string name="layout_misc_title">Misc</string>
<string name="label_max_unlocked_icons_per_row">Max unlocked icons per row</string>
<string name="layout_padding_title">Padding</string>
<string name="layout_subpage_disabled_hint">Requires Layout to be ON</string>
<string name="notification_icons_layout_required_hint">Requires Layout to be ON</string>
<string name="notification_icons_unlocked_obsolete_hint">Obsolete when Layout is ON</string>
<string name="layout_cutout_gap_label">Gap from cutout (px)</string>
<string name="layout_left_padding_label">Left padding (px)</string>
<string name="layout_right_padding_label">Right padding (px)</string>