[SOLVED] What's the best way to apply insets in a ...
# android
a
[SOLVED] What's the best way to apply insets in a PreferenceFragment? Simply adding the insets does not work because it moves the entire ScrollView to the top, I want just a padding on the bottom inside the scrollview. How do I get the RecyclerView used by the PreferenceFragment?
đŸ˜¶ 4
This is how I did it using Insetter:
Copy code
view.findViewById<RecyclerView>(
    androidx.preference.R.id.recycler_view
)?.apply {
    applyInsetter {
        type(navigationBars = true) {
            padding()
        }
    }
}