Files
statusbartweak/app/src/main/res/layout/fragment_notification_icons.xml
T
2026-05-04 11:59:40 +00:00

651 lines
31 KiB
XML

<?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>