How can I make the spinner width same as largest available item width

前端 未结 7 1578
天涯浪人
天涯浪人 2021-01-31 07:44

I realize even I use wrap_content for my spinner (I avoid using match_parent as I do not want the spinner overly long), and using match_parent

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 08:08

    I merely "solve" the problem by using

    
    

    200dp is just try-n-error value, to ensure all items in the drop down list are visible.

提交回复
热议问题