Progress bar with rounded corners?

后端 未结 4 1132
孤城傲影
孤城傲影 2020-12-07 12:04

I am trying to achieve this progress bar design:

The current code that I have produces this:

This is the code:



        
4条回答
  •  醉话见心
    2020-12-07 12:44

    Thanks to Georgi Koemdzhiev for a nice question and images. For those who want to make similar to his, do the following.

    1) Create a background for a ProgressBar.

    progress_bar_background.xml:

    
    
        
        
    
    

    2) Create a scale for the ProgressBar.

    curved_progress_bar.xml:

    
    
        
            
                
                
            
        
    
        
            
                
                    
                    
                
            
        
    
    

    3) In layout file add the ProgressBar.

    
    
        
    
    
    

提交回复
热议问题