144 lines
5.7 KiB
XML
144 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/settings_title"
|
|
android:textSize="28sp"
|
|
android:textColor="@color/accent"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textStyle="bold"
|
|
android:layout_marginTop="20dp"
|
|
android:text="@string/settings_storage"/>
|
|
|
|
<RadioGroup
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<RadioButton android:id="@+id/settings_data_local"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:checked="true"
|
|
android:text="@string/settings_storage_local"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="30dp"
|
|
android:text="@string/settings_storage_local_desc"/>
|
|
|
|
<RadioButton android:id="@+id/settings_data_webdav"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:text="@string/settings_storage_dav"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="30dp"
|
|
android:text="@string/settings_storage_dav_desc"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginLeft="30dp"
|
|
android:textStyle="bold"
|
|
android:text="@string/settings_storage_dav_url"/>
|
|
|
|
<EditText
|
|
android:id="@+id/settings_data_webdav_url"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="30dp"
|
|
android:hint="@string/settings_storage_dav_url_hint"
|
|
android:inputType="textUri"
|
|
android:background="@drawable/textview_background"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginLeft="30dp"
|
|
android:textStyle="bold"
|
|
android:text="@string/settings_storage_dav_user"/>
|
|
|
|
<EditText
|
|
android:id="@+id/settings_data_webdav_user"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="30dp"
|
|
android:inputType="textEmailAddress"
|
|
android:background="@drawable/textview_background"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginLeft="30dp"
|
|
android:textStyle="bold"
|
|
android:text="@string/settings_storage_dav_pass"/>
|
|
|
|
<EditText
|
|
android:id="@+id/settings_data_webdav_pass"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="30dp"
|
|
android:inputType="textPassword"
|
|
android:background="@drawable/textview_background"/>
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/progress_indicator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:indeterminate="true"
|
|
app:indicatorColor="@color/accent"
|
|
android:layout_margin="20dp"
|
|
android:visibility="invisible"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/settings_cancel"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginRight="20dp"
|
|
android:background="@drawable/button_background"
|
|
android:textColor="@color/accent"
|
|
android:text="@android:string/cancel"/>
|
|
|
|
<Button
|
|
android:id="@+id/settings_save"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textColor="@color/accent"
|
|
android:background="@drawable/button_background"
|
|
android:text="@android:string/ok"/>
|
|
|
|
</LinearLayout>
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |