Spinner dropUP instead dropDOWN android

后端 未结 2 415
清酒与你
清酒与你 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: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.

提交回复
热议问题