Files
statusbartweak/app/src/main/res/layout/fragment_clock.xml
T
2026-06-18 15:42:27 +00:00

299 lines
14 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:tag="statusbartweak.page.title"
android:text="@string/clock_title"
android:textAppearance="?attr/textAppearanceHeadline5" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/clock_custom_format_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:letterSpacing="0.03"
android:text="@string/clock_custom_format_statusbar_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
android:id="@+id/clock_custom_format_enabled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_custom_format_enabled" />
<LinearLayout
android:id="@+id/clock_custom_format_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<se.ajpanton.statusbartweak.shell.ui.ClockPatternPreviewView
android:id="@+id/clock_custom_format_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_preview_background" />
<EditText
android:id="@+id/clock_custom_format_input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_input_background"
android:gravity="top|start"
android:importantForAutofill="no"
android:inputType="textMultiLine|textNoSuggestions"
android:minWidth="120dp"
android:minLines="1"
android:scrollHorizontally="false"
android:singleLine="false" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/drawer_clock_custom_format_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:letterSpacing="0.03"
android:text="@string/clock_custom_format_drawer_clock_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
android:id="@+id/drawer_clock_custom_format_enabled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/drawer_clock_custom_format_enabled" />
<LinearLayout
android:id="@+id/drawer_clock_custom_format_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<se.ajpanton.statusbartweak.shell.ui.ClockPatternPreviewView
android:id="@+id/drawer_clock_custom_format_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_preview_background" />
<EditText
android:id="@+id/drawer_clock_custom_format_input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_input_background"
android:gravity="top|start"
android:importantForAutofill="no"
android:inputType="textMultiLine|textNoSuggestions"
android:minWidth="120dp"
android:minLines="1"
android:scrollHorizontally="false"
android:singleLine="false" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/drawer_date_custom_format_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:letterSpacing="0.03"
android:text="@string/clock_custom_format_drawer_date_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<CheckBox
android:id="@+id/drawer_date_custom_format_enabled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/drawer_date_custom_format_enabled" />
<LinearLayout
android:id="@+id/drawer_date_custom_format_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<se.ajpanton.statusbartweak.shell.ui.ClockPatternPreviewView
android:id="@+id/drawer_date_custom_format_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_preview_background" />
<EditText
android:id="@+id/drawer_date_custom_format_input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/sbt_clock_input_background"
android:gravity="top|start"
android:importantForAutofill="no"
android:inputType="textMultiLine|textNoSuggestions"
android:minWidth="120dp"
android:minLines="1"
android:scrollHorizontally="false"
android:singleLine="false" />
</LinearLayout>
</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/clock_custom_format_tools_title"
android:textAllCaps="true"
android:textAppearance="?attr/textAppearanceSubtitle1"
android:textStyle="bold" />
<com.google.android.material.button.MaterialButton
android:id="@+id/clock_font_picker_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_font_picker_button" />
<com.google.android.material.button.MaterialButton
android:id="@+id/clock_restore_stored_patterns_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_restore_stored_patterns" />
<TextView
android:id="@+id/clock_custom_format_help_toggle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/clock_custom_format_help_show"
android:textAppearance="?attr/textAppearanceBody1"
android:textColor="@color/sbt_accent_dark" />
<LinearLayout
android:id="@+id/clock_custom_format_help_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/clock_custom_format_help"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/clock_custom_format_help_common"
android:textAppearance="?attr/textAppearanceCaption" />
<TextView
android:id="@+id/clock_custom_format_help_styling"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/clock_custom_format_help_styling"
android:textAppearance="?attr/textAppearanceCaption" />
<TextView
android:id="@+id/clock_custom_format_help_examples"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/clock_custom_format_help_examples"
android:textAppearance="?attr/textAppearanceCaption" />
<TextView
android:id="@+id/clock_custom_format_help_link"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:autoLink="web"
android:linksClickable="true"
android:text="@string/clock_custom_format_help_link"
android:textAppearance="?attr/textAppearanceCaption" />
</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</ScrollView>