How can I fix the Spinner style for Android 4.x placed on top of the Toolbar

后端 未结 15 782
别那么骄傲
别那么骄傲 2020-12-04 06:10

According to Android documentation, Material Design style is supported for Spinner widget.

So I decided to use it in my app placing it on top of the Toolbar.

<

15条回答
  •  无人及你
    2020-12-04 06:43

    Can you not do this?

    Custom xml file for spinner item: your_spinner.xml:

    
    
    

    Use this to show spinner items:

    ArrayAdapter adapter = new ArrayAdapter(this, R.layout.your_spinner,list);
    

    Then remove drop down resource.

提交回复
热议问题