You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively you can simple extend `BaseSettingsActivity`and implement the single abstract `createScreen` function there - whatever you prefer.
29
+
This uses a "trick" to provide a small and efficient parcelable setup via an `object` to avoid any problems (either memory nor speed wise) with the parcel size limit and still provides a convenient and simple way to use this library without having to write your own settings activity.
30
30
31
-
Of course, you can simple place the settings screen inside any layout manually as well, check out the [CustomSettingsActivity](../demo/src/main/java/com/michaelflisar/materialpreferences/demo/activities/CustomSettingsActivity.kt) for an example. This is quite simple as well, simple do following:
31
+
# Usage with a custom activity (ALTERNATIVE)
32
+
33
+
Alternatively you can simple extend `BaseSettingsActivity` and implement the single abstract `createScreen` function there s shown inside the [CustomSettingsActivity](../demo/src/main/java/com/michaelflisar/materialpreferences/demo/activities/CustomSettingsActivity.kt) and with this method you can of course also embed the settings screen inside any bigger layout.
34
+
35
+
Generally the manual approach works as simple as following:
32
36
33
37
* create the screen
34
38
* bind it to a `RecyclerView`
35
39
* forward the back press event to the screen so that it can handle its internal backstack
0 commit comments