Change spinner background color but keep arrow

前端 未结 11 1344
予麋鹿
予麋鹿 2020-12-13 01:41

I\'ve read several thing about it but I can\'t find what I need. I want to keep the grey arrow but I want to remove the horizontal bar from the default style and have a whit

11条回答
  •  时光取名叫无心
    2020-12-13 02:19

    Here is the code of custom spinner. Please check it out and tell me. Not yet I tested this. So please inform me after checking this whether it solves your problem.

    
    

    Here is the drawable(spinner_background.xml) to create the background of spinner.

    
    
    
        
            
                
    
                
            
        
        
            
                
    
                
            
        
    
    
    

    Edit:

    please check this link which gives you an idea to do. Customize spinner background

    OR

    you can do something like this.

    
    
            
    
            
    
        
    

提交回复
热议问题