mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-09 00:07:30 +00:00
40e810e88c
1. Added preferences screens. 2. Some DM changes. 3. Init profile actions using services
174 lines
6.8 KiB
XML
Executable File
174 lines
6.8 KiB
XML
Executable File
<?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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp">
|
|
|
|
<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="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
android:visibility="gone">
|
|
|
|
<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"
|
|
app:srcCompat="@drawable/ic_outline_info_24" />
|
|
</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="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_time_format" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/spTimeFormat"
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_weight="1"
|
|
android:entries="@array/time_presets" />
|
|
</LinearLayout>
|
|
|
|
<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_separator" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/spSeparator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_weight="1"
|
|
android:entries="@array/separator_presets" />
|
|
</LinearLayout>
|
|
|
|
<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_date_format" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/spDateFormat"
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_weight="1"
|
|
android:entries="@array/date_presets" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/cbSwapTimeDate"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/time_settings_swap_time" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:baselineAligned="false"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:text="@string/time_settings_title_preview" />
|
|
|
|
<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> |