pull/32/head
parent
e3b9686fc5
commit
f94b843d92
@ -0,0 +1,13 @@ |
||||
package io.legado.app.ui.config |
||||
|
||||
import android.os.Bundle |
||||
import androidx.preference.PreferenceFragmentCompat |
||||
import io.legado.app.R |
||||
|
||||
class WebDavConfigFragment : PreferenceFragmentCompat() { |
||||
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { |
||||
addPreferencesFromResource(R.xml.pref_config_web_dav) |
||||
} |
||||
|
||||
} |
@ -0,0 +1,29 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.preference.PreferenceScreen |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
||||
<androidx.preference.EditTextPreference |
||||
android:key="web_dav_url" |
||||
android:title="WebDav 服务器地址" |
||||
android:summary="输入你的服务器地址" |
||||
android:singleLine="true"/> |
||||
|
||||
<androidx.preference.EditTextPreference |
||||
android:key="web_dav_account" |
||||
android:title="WebDav 账号" |
||||
android:summary="输入你的WebDav账号" |
||||
android:singleLine="true"/> |
||||
|
||||
<androidx.preference.EditTextPreference |
||||
android:key="web_dav_password" |
||||
android:title="WebDav 密码" |
||||
android:summary="输入你的WebDav授权密码" |
||||
android:singleLine="true" |
||||
android:password="true" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="web_dav_restore" |
||||
android:title="恢复" |
||||
android:summary="从WebDav恢复"/> |
||||
|
||||
</androidx.preference.PreferenceScreen> |
Loading…
Reference in new issue