jaredrummler / MaterialSpinner

A spinner view for Android
Apache License 2.0
1.32k stars 217 forks source link

ms_popup_padding_bottom and ms_popup_padding_top does not work #116

Open 4332weizi opened 5 years ago

4332weizi commented 5 years ago

I want set ms_popup_padding_bottom and ms_popup_padding_top with value 2dp, but it is does not work.

android:minHeight="@dimen/ms__item_height" has been set to list item , so I can not set ms_popup_padding_top or ms_popup_padding_bottom with a small value.

Frank-99 commented 5 years ago

I just added <dimen name="ms__item_height">24dp</dimen> to my dimens.xml file, which overrides the default value. After that i was able to set the desired padding. It's a late comment, but I hope it helps someone :)

Darksymphony75 commented 2 years ago

I just added <dimen name="ms__item_height">24dp</dimen> to my dimens.xml file, which overrides the default value. After that i was able to set the desired padding. It's a late comment, but I hope it helps someone :)

This helped me a lot, thanks. But still, the padding works not for the first item in the popup list. I'd like to have a top/bottom offset in the popup.