123 lines
4.6 KiB
XML
123 lines
4.6 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">
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
|
|
|
<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"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/settings_save"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@android:string/ok"/>
|
|
|
|
<Button
|
|
android:id="@+id/settings_cancel"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@android:string/cancel"/>
|
|
|
|
</LinearLayout>
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |