shay mishali shay mishali - 8 months ago 44
Android Question

Spinner opens from top and not from bottom

[You can perfectly see the problem here, the drop downlist opens from the top of the spinner and not from the bottom and I don't know what to do, couldn't find any solution on google either, please help me] sorry for external image link, for some reason it wont load the picture here..

enter image description here

here is my spinner code:



This would happen if the item which inflates the spinner is close to the bottom of the screen.

Since the spinner would not have enough room (or just barely enough room) if inflated downward, it is inflated upward instead. Try putting the spinner higher (vertically) in the layout.

It depends on Screen size, If you test it on other device it will show at down/up.

I suggest you to test it on different devices.

you can use custome adapter if you want

android:overlapAnchor="false" />

Please check this answer and this answer