1241 lines
58 KiB
XML
1241 lines
58 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/layout_title"
|
|
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"
|
|
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/layout_master_toggle_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/clock_enabled_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/layout_enabled" />
|
|
</LinearLayout>
|
|
</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"
|
|
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/layout_clock_position_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/clock_position_mode_lockscreen"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_lockscreen" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/clock_position_mode_unlocked"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_unlocked" />
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/clock_position_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/clock_position_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/clock_position_middle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:text="@string/clock_position_middle" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/clock_position_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_right" />
|
|
</RadioGroup>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/clock_position_middle_options_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<CheckBox
|
|
android:id="@+id/clock_middle_auto_nearest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/layout_middle_auto_nearest" />
|
|
|
|
<TextView
|
|
android:id="@+id/clock_middle_side_prompt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/layout_middle_side_prompt"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/clock_middle_side_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/clock_middle_side_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/clock_middle_side_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/clock_middle_side_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:text="@string/clock_middle_side_right" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/clock_vertical_offset_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/clock_vertical_offset_minus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇊" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/clock_vertical_offset_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↓" />
|
|
|
|
<EditText
|
|
android:id="@+id/clock_vertical_offset_input"
|
|
android:layout_width="42dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/clock_vertical_offset_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↑" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/clock_vertical_offset_plus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇈" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/clock_vertical_offset_reset"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="0" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</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"
|
|
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/layout_chip_position_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/chip_position_mode_lockscreen"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_lockscreen" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/chip_position_mode_unlocked"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_unlocked" />
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/chip_position_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/chip_position_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:text="@string/clock_position_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/chip_position_middle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_middle" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/chip_position_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_right" />
|
|
</RadioGroup>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/chip_position_middle_options_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<CheckBox
|
|
android:id="@+id/chip_middle_auto_nearest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/layout_middle_auto_nearest" />
|
|
|
|
<TextView
|
|
android:id="@+id/chip_middle_side_prompt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/layout_middle_side_prompt"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/chip_middle_side_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/chip_middle_side_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/clock_middle_side_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/chip_middle_side_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:text="@string/clock_middle_side_right" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/clock_vertical_offset_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/chip_vertical_offset_minus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇊" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/chip_vertical_offset_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↓" />
|
|
|
|
<EditText
|
|
android:id="@+id/chip_vertical_offset_input"
|
|
android:layout_width="42dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/chip_vertical_offset_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↑" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/chip_vertical_offset_plus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇈" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/chip_vertical_offset_reset"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="0" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</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"
|
|
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/layout_notification_position_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/notif_position_mode_aod"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_aod" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/notif_position_mode_lockscreen"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_lockscreen" />
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/notif_position_mode_unlocked"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_unlocked" />
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/notif_position_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/notif_position_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:text="@string/clock_position_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/notif_position_middle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_middle" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/notif_position_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_right" />
|
|
</RadioGroup>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notif_position_middle_options_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<CheckBox
|
|
android:id="@+id/notif_middle_auto_nearest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/layout_middle_auto_nearest" />
|
|
|
|
<TextView
|
|
android:id="@+id/notif_middle_side_prompt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/layout_middle_side_prompt"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/notif_middle_side_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/notif_middle_side_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/clock_middle_side_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/notif_middle_side_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:text="@string/clock_middle_side_right" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/clock_vertical_offset_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/notif_vertical_offset_minus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇊" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/notif_vertical_offset_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↓" />
|
|
|
|
<EditText
|
|
android:id="@+id/notif_vertical_offset_input"
|
|
android:layout_width="42dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/notif_vertical_offset_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↑" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/notif_vertical_offset_plus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇈" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/notif_vertical_offset_reset"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="0" />
|
|
</LinearLayout>
|
|
</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"
|
|
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/layout_status_position_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/status_position_mode_aod"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_aod" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/status_position_mode_lockscreen"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_lockscreen" />
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/status_position_mode_unlocked"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/section_unlocked" />
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/status_position_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/status_position_left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/status_position_middle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/clock_position_middle" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/status_position_right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:text="@string/clock_position_right" />
|
|
</RadioGroup>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/status_position_middle_options_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<CheckBox
|
|
android:id="@+id/status_middle_auto_nearest"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/layout_middle_auto_nearest" />
|
|
|
|
<TextView
|
|
android:id="@+id/status_middle_side_prompt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/layout_middle_side_prompt"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/status_middle_side_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/status_middle_side_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="@string/clock_middle_side_left" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/status_middle_side_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:text="@string/clock_middle_side_right" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/clock_vertical_offset_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/status_vertical_offset_minus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇊" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/status_vertical_offset_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↓" />
|
|
|
|
<EditText
|
|
android:id="@+id/status_vertical_offset_input"
|
|
android:layout_width="42dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/status_vertical_offset_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="↑" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/status_vertical_offset_plus_fast"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="⇈" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/status_vertical_offset_reset"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:minWidth="40dp"
|
|
android:minHeight="40dp"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="0dp"
|
|
android:text="0" />
|
|
</LinearLayout>
|
|
</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"
|
|
android:layout_marginBottom="20dp"
|
|
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/layout_ordering_title"
|
|
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="8dp"
|
|
android:text="@string/layout_ordering_hint"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/layout_ordering_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/layout_sort_icons_title"
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
android:textStyle="bold" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/layout_sort_icons_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/layout_sort_icons_stock"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/layout_sort_icons_stock" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/layout_sort_icons_reversed"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/layout_sort_icons_reversed" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/layout_sort_icons_automatic"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="@string/layout_sort_icons_automatic" />
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
</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"
|
|
android:layout_marginBottom="20dp"
|
|
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/layout_padding_title"
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
android:textAllCaps="true"
|
|
android:letterSpacing="0.03"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/layout_cutout_gap_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_cutout_gap_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="-" />
|
|
|
|
<EditText
|
|
android:id="@+id/layout_cutout_gap_input"
|
|
android:layout_width="48dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_cutout_gap_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="+" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/layout_left_padding_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_left_padding_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="-" />
|
|
|
|
<EditText
|
|
android:id="@+id/layout_left_padding_input"
|
|
android:layout_width="48dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_left_padding_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="+" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/layout_left_padding_add_stock"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:text="@string/layout_padding_add_stock" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/layout_right_padding_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_right_padding_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="-" />
|
|
|
|
<EditText
|
|
android:id="@+id/layout_right_padding_input"
|
|
android:layout_width="48dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberSigned"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_right_padding_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="+" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/layout_right_padding_add_stock"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:text="@string/layout_padding_add_stock" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/layout_item_padding_label"
|
|
android:textAppearance="?attr/textAppearanceBody2" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_item_padding_minus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="-" />
|
|
|
|
<EditText
|
|
android:id="@+id/layout_item_padding_input"
|
|
android:layout_width="48dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:ems="4"
|
|
android:gravity="center"
|
|
android:importantForAutofill="no"
|
|
android:inputType="number"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/layout_item_padding_plus"
|
|
style="?attr/materialButtonOutlinedStyle"
|
|
android:layout_width="40dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="+" />
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/layout_ignore_under_display_cameras"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:checked="true"
|
|
android:text="@string/layout_ignore_under_display_cameras" />
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</LinearLayout>
|
|
</ScrollView>
|