How to change android indeterminate ProgressBar color?

前端 未结 8 1064
春和景丽
春和景丽 2020-12-02 06:12

I would like to know how I can change indeterminate ProgressBar color from basis white/grey color to black ? When I change the indeterminateDrawable

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 06:45

    actually all u need to do (for both cirle and bar) is create an xml file in drawable as shown below...... progress_spinner_001 points to whatever image u want to animate and duration ... how long u want to display each frame for....... and set ur android:indeterminateDrawable= filename_in_drawable....

    
    
    
    
    
      
        
          
         
        
    
    

    ps u may need to resize the progressbar to show as desired

提交回复
热议问题