Android Bottom Navigation Bar Overlapping Spinner. Set Spinner Dropdown Height / Margin
There is an interesting issue I stumbled upon while working on an Android Honeycomb project. As you can see in the image below, while expanding a Spinner in a dialog, the navigatio
Solution 1:
After some more research it seems that you can not manipulate the height of the Spinner dropdown, or any other of it's layout attributes.
This is because the dropdown is actually a popup dialog that cannot be accesed from the Spinner View.
This answer states it clear: https://stackoverflow.com/a/1918655/529138
So it seams that I have to use android:layout_marginBottom
as specified in the question.
Solution 2:
Even i faced the same issue. Unlike your screen my screen has just one option. so i made a fix changing the android:spinnerMode:"dialog".
<Spinner
android:id="@+id/dialog_spinner"
android:spinnerMode="dialog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
This would show your list in a new dialog. Just in case might be helpful for people searching with similar problem.
Post a Comment for "Android Bottom Navigation Bar Overlapping Spinner. Set Spinner Dropdown Height / Margin"