Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun PreferenceFragmentCompat?.getPref(id: Int): Preference?
Link copied to clipboard
fun Preference?.hideOn(layoutFlags: Int): Preference?

Hide the Preference on selected layouts.

Link copied to clipboard
fun PreferenceFragmentCompat?.hidePrefs(ids: List<Int>, layoutFlags: Int)

Hide many Preferences on selected layouts.

Link copied to clipboard
fun PreferenceFragmentCompat.setPaddingBottom()

On TV you cannot properly scroll to the bottom of settings, this fixes that.

Link copied to clipboard
fun Fragment.setSystemBarsPadding()
Link copied to clipboard
fun Fragment?.setToolBarScrollFlags()
fun PreferenceFragmentCompat.setToolBarScrollFlags()
Link copied to clipboard
fun Fragment?.setUpToolbar(@StringRes title: Int)
fun Fragment?.setUpToolbar(title: String)