Possible to do rounded corners in custom Progressbar progressDrawable?

前端 未结 2 1638
孤独总比滥情好
孤独总比滥情好 2021-01-03 03:12

I have a progress bar that is supposed to look like the attached image:\"enter

And I\'

2条回答
  •  遥遥无期
    2021-01-03 03:32

    Try this , you may be able to do what you want by modifying the color and width and height of the thumb and the seekbar in xml.

    you can see the image here

    This sulotion was the only way i could do this. Hope this help

    this is my seekbar :

             
    

    this is (progress_background.xml) :

    
        
            
    
            
        
    
    
        
            
                
                
            
        
    
    
        
            
                
    
                
            
        
    
    

    and this is the thumb (oval_seekbar_thumb.xml) :

    
    
        
            
                
                
                
            
        
    
    

    The height of the thumb should be same as the height of the seekbar to look properly.

提交回复
热议问题