How to create android spinner without down triangle on the right side of the widget

后端 未结 8 740
粉色の甜心
粉色の甜心 2020-11-27 04:59

I have a screen where the user has many items to input so screen space is at a premium.

I want the look of the widget on the screen (before the user presses it) t

8条回答
  •  囚心锁ツ
    2020-11-27 05:20

    I just arrived to this question, because my spinner was not showing the triangle indicator, now I understand why: I was setting the background to "white":

    android:background="#FFFFFFFF"
    

    This removes the triangle indicator (the spinner background image and padding stated by Aleadam).

    For my problem, I solve it adding a parent LinearLayout just to set the background to "white".

提交回复
热议问题