Preferential practices for preferences (Android Dev Summit '18)
Why Stack Overflow recommends it
Stack Overflow users link it when setting up or migrating to AndroidX preferences, for example PreferenceFragmentCompat, sub-screens and theming.
Recommended by 0 people across 0 different months, 2018 to 2020.
What it is
A 13-minute Android Dev Summit '18 session by Louis Pullen-Freilich of the Android team on the AndroidX Preference library. It covers new features, best practices for settings screens, and how to migrate off the framework preference classes.
What people said
Cites Dewey Reed · 2018-11 · Stack Overflow · on “Preference sub-screen not opening when using support.v7.preference”
It seems Google finally decides to support this in the newly released AndroidX preference 1.1.0-alpha. This video from Android Dev Summit covers something about preference sub screen. [this video]
Cites 0stack · 2019-06 · Stack Overflow · on “How to apply a style/theme (material) to a preference in androidX?”
I know this might be a possible duplicate like Applying AppCompat theme to individual preferences in a PreferenceFragment [LINK] I used this video on youtube: [this video] And from devolper android this guideline: [LINK] to build my preferences. At the moment my preference library is: implementation 'androidx.preference:preference:1.1.0-beta01' So now I want to apply my apptheme to my preferences settings... I got this in my manifest.xml <application android:name=".XXXApplication" android:allowBackup="false" android:label="@string/W_APP_NAME" android:supportsRtl="true" android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning"> <activity android:name=".Views.MainActivity" android:lab
Cites neuberfran · 2019-07 · Stack Overflow · on “transpose project with PreferenceActivity/appcompat-v7:28.0.0 to PreferenceFragmentCompat/androidx”
@Louis I think supportFragmentManager only works with kotlin and androidx/ktx or in Java with appcompat-v7/v8. I'm checking cases on the internet: [this video] [LINK] [LINK]
Cites Meltix · 2020-09 · Stack Overflow · on “androidx - Implement androidx Preferences in an Activity (Kotlin)”
What's the objective Im currently working on an app, which has a settings screen, containing a recyclerview. This recyclerview, on item click, opens the relative activity, which are the Settings' submenus (Code below). In the newly opened activity, i want to implement using the implementation androidx.prefrence a preference screen. What's the problem For this, im following this video [this video] . In this video, they set up a preference screen using PreferenceFragmentCompact . The problem with this, is the fact that we are setting up a new activity and then a new fragment, which in my app its not efficient, since im building my settings with just activities. Considering this, is it possible to s