pull/32/head
parent
69947c426d
commit
54e14fba60
@ -0,0 +1,15 @@ |
||||
package io.legado.app.ui.about |
||||
|
||||
import android.os.Bundle |
||||
import androidx.preference.Preference |
||||
import androidx.preference.PreferenceFragmentCompat |
||||
import io.legado.app.App |
||||
import io.legado.app.R |
||||
|
||||
class AboutFragment : PreferenceFragmentCompat() { |
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { |
||||
addPreferencesFromResource(R.xml.about) |
||||
findPreference<Preference>("version")?.summary = App.INSTANCE.versionName |
||||
} |
||||
|
||||
} |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
||||
<item |
||||
android:id="@+id/menu_scoring" |
||||
android:title="@string/scoring" |
||||
app:showAsAction="always" /> |
||||
</menu> |
@ -0,0 +1,36 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto"> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="isNightTheme" |
||||
android:title="开发人员" |
||||
android:summary="gedoor, Invinciblelee, atbest, Antecer, mabDc" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="version" |
||||
android:title="@string/version" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="update_log" |
||||
android:title="@string/update_log" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="check_update" |
||||
android:title="@string/check_update" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="qq" |
||||
android:title="@string/join_qq_group" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
<androidx.preference.Preference |
||||
android:key="disclaimer" |
||||
android:title="@string/disclaimer" |
||||
app:iconSpaceReserved="false" /> |
||||
|
||||
</androidx.preference.PreferenceScreen> |
Loading…
Reference in new issue