MaterialSpinner
MaterialSpinner copied to clipboard
Spinner Height error when item selected
Spinner height increase when item selected, On Hint select Height is Normal
me too, is there any fix?
+1
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.
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);