MaterialSpinner icon indicating copy to clipboard operation
MaterialSpinner copied to clipboard

Spinner Height error when item selected

Open ghost opened this issue 9 years ago • 4 comments

Spinner height increase when item selected, On Hint select Height is Normal

ghost avatar Feb 22 '16 13:02 ghost

me too, is there any fix?

meeftah avatar Feb 26 '16 06:02 meeftah

+1

ademilhan041 avatar Jul 04 '16 13:07 ademilhan041

For me it only happens when I set height to "wrap_content". Setting it to specific dp value "solved" it for me... I know, not a real fix, but maybe it helps someone else too.

FinnGu avatar Aug 21 '16 19:08 FinnGu

There is a solution. See #80.

Using android.R.layout.simple_dropdown_item_1line causes this problem. The fix is to use this (as in readme):

ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, brands);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

shahimclt avatar Sep 30 '17 11:09 shahimclt