How to specify custom layout for a DropdownPreference?

88 views Asked by At

I want to use a custom layout for a DropDownPreference.

When I specify the layout as an android:layout="@layout/mylayout", I get a runtime error. Can anyone confirm if they have done this previously?

1

There are 1 answers

0
Maverick On BEST ANSWER

I solved it myself.

The issue was that I was not implementing Spinner component inside my custom Layout and DropDownPreference uses a Spinner component internally.