first commit
This commit is contained in:
19
app/src/main/res/xml/preference_edit_text_input.xml
Normal file
19
app/src/main/res/xml/preference_edit_text_input.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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">
|
||||
|
||||
<EditText android:id="@android:id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:singleLine="true"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginStart="21dp"
|
||||
android:layout_marginEnd="21dp"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
8
app/src/main/res/xml/provider_paths.xml
Normal file
8
app/src/main/res/xml/provider_paths.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<paths>
|
||||
<files-path name="files" path="/"/>
|
||||
<cache-path name="cache" path="/"/>
|
||||
<external-path name="ExtPath" path="/"/>
|
||||
<external-files-path name="ExtFiles" path="/"/>
|
||||
<external-cache-path name="CacheFiles" path="/"/>
|
||||
<external-media-path name="MediaFiles" path="/"/>
|
||||
</paths>
|
||||
42
app/src/main/res/xml/root_preferences.xml
Normal file
42
app/src/main/res/xml/root_preferences.xml
Normal file
@ -0,0 +1,42 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<PreferenceCategory
|
||||
app:title="@string/server_header">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="protocol"
|
||||
android:title="@string/server_protocol" />
|
||||
<EditTextPreference
|
||||
app:defaultValue="@string/server_host_def"
|
||||
app:key="host"
|
||||
app:title="@string/server_host"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<EditTextPreference
|
||||
app:defaultValue="@string/server_port_def"
|
||||
app:key="port"
|
||||
app:title="@string/server_port"
|
||||
app:useSimpleSummaryProvider="true"
|
||||
app:dialogLayout="@xml/preference_edit_text_input" />
|
||||
|
||||
<EditTextPreference
|
||||
app:defaultValue="@string/server_root_def"
|
||||
app:key="root"
|
||||
app:title="@string/server_root"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory app:title="@string/local_header">
|
||||
|
||||
<Preference
|
||||
app:key="local_storage"
|
||||
app:title="@string/local_storage"
|
||||
app:defaultValue="@string/local_storage_def"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user