Maxr1998 / ModernAndroidPreferences

Android Preferences defined through Kotlin DSL, shown in a RecyclerView
Apache License 2.0
120 stars 5 forks source link

Create custom preferences #106

Open Robotxm opened 1 year ago

Robotxm commented 1 year ago

In PreferencesAdapter#onCreateViewHolder() only few types of layouts can be used. How can I create a custom preferences with custom layout?

Maxr1998 commented 1 year ago

It's not possible to set the layout of the whole preference view. You can, however, specify a custom layout for the preference's widget by overriding getWidgetLayoutResource.