Seek bar, change path color from yellow to white

后端 未结 7 631
野性不改
野性不改 2020-11-27 12:29

I have two questions:

1) how do I change the color of the seek bar (path) from yellow (the default color) to white. What I mean to say is, while I slide the thumb ,

7条回答
  •  温柔的废话
    2020-11-27 13:07

    I want to complete the answer from above for the people who are new to the system,

    the missing xmls ( background_fill , progress_fill and progress could look like that for a gradient red

    progress.xml

    
        
            
    
            
               
            
      
    

    background_fill.xml

    
        
    
        
    
        
    
        
    
    

    progress_fill.xml

    
    
        
    
        
    
        
    
        
    
    

    i did not complete the implementing for android:thumb, so the thumb will be still the original one

    Therefore we just have to delete this line again from our layout xml where we define the seekbar

    android:thumb="@drawable/thumb"
    

    Good luck!!!

提交回复
热议问题