Setting up the androidx preference library SettingsFragment

This commit is contained in:
Arty Bishop committed 2019-12-04 22:11:07 +00:00
1 parent 06cb63aa11
commit 4e4256bc3f
6 files changed
+81 -3

No files matched your search

@@ -0,0 +1,11 @@
package com.rtbishop.lookingsat.ui
import android.os.Bundle
import androidx.preference.PreferenceFragmentCompat
import com.rtbishop.lookingsat.R
class SettingsFragment : PreferenceFragmentCompat() {
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
setPreferencesFromResource(R.xml.preference, rootKey)
}
}