Spinner dropUP instead dropDOWN android

后端 未结 2 412
清酒与你
清酒与你 2021-01-18 18:16

I have an Adapter which extends from ArrayAdapter in order to fill one Spinner with one collections of objects (City). Both all objects and adapter work correctly, at least

相关标签:
2条回答
  • 2021-01-18 19:05

    Try adding marginEnd to the spinner. The spinner does not have enough room to open the downwards.

    0 讨论(0)
  • 2021-01-18 19:10

    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.

    0 讨论(0)
提交回复
热议问题