mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-12 17:57:29 +00:00
182 lines
7.1 KiB
XML
182 lines
7.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:paddingStart="4dp"
|
||
|
android:paddingLeft="4dp"
|
||
|
android:paddingTop="12dp"
|
||
|
android:paddingEnd="4dp"
|
||
|
android:paddingRight="4dp">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text="@string/time_settings_title_custom" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/cbCustomFormat"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatEditText
|
||
|
android:id="@+id/etCustomFormat"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:enabled="false" />
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatImageButton
|
||
|
android:id="@+id/btnInfo"
|
||
|
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="start"
|
||
|
android:src="@android:drawable/ic_menu_info_details" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
android:id="@+id/customPanel"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:visibility="gone">
|
||
|
|
||
|
<include layout="@layout/layout_include_custom_format_info" />
|
||
|
</FrameLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:baselineAligned="false"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="0.84"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/time_settings_title_time_format" />
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatSpinner
|
||
|
android:id="@+id/spTimeFormat"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:entries="@array/time_presets" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="0.7"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/time_settings_title_separator" />
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatSpinner
|
||
|
android:id="@+id/spSeparator"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:entries="@array/separator_presets" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/time_settings_title_date_format" />
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatSpinner
|
||
|
android:id="@+id/spDateFormat"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:entries="@array/date_presets" />
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:baselineAligned="false"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="bottom"
|
||
|
android:layout_weight="1"
|
||
|
android:text="@string/time_settings_title_preview" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/cbSwapTimeDate"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center"
|
||
|
android:text="@string/time_settings_swap_time" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/timePreview"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||
|
tools:text="hh:mm:ss a 'on' dd-MM-yyyy" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
style="@style/Widget.AppCompat.ButtonBar.AlertDialog"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatButton
|
||
|
android:id="@+id/btnConfirm"
|
||
|
style="@style/Widget.AppCompat.Button.ButtonBar.AlertDialog"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="end"
|
||
|
android:text="@string/confirm" />
|
||
|
</FrameLayout>
|
||
|
</LinearLayout>
|
||
|
</ScrollView>
|