Modify the Size of an Android Spinner Drop down part Size?

前端 未结 3 970
栀梦
栀梦 2020-12-19 15:24

how can i modify the size of the dropdown part of the spinner?? do i have to do that in XML or in the code itself?

3条回答
  •  太阳男子
    2020-12-19 15:55

    You can not change the size of spinner as it is default widget. But you can make it custom using background image. Here is my code:

    
     
    

    This is written in XML. And make another file called myspinner_background.xml in drawable folder. Inside that, write this code:

    
    
    
    

提交回复
热议问题