Android switches - making thumb height larger than track height, how?

后端 未结 4 1341
北荒
北荒 2020-12-18 03:53

Is there any way to make the height of the thumb of a switch bigger than the track height in Android versions prior to Lollipop ?

I am essentially trying to create a

4条回答
  •  隐瞒了意图╮
    2020-12-18 04:41

    Yup I solved this

     
    

    This is My Color1SwitchStyle

     
    

    *Hear is my customswitchselector.xml

     
        
          
           
    
                
                
    
                
                
            
        
        
            
    
                
                
    
                
                
            
        
    
    
    

    And hear is magic my my_custom_track.xml

    
        
            
            
         
    
    
    
    
    
    switch_track_on.xml 
    
    
        
            
                
                
                
    
                
            
        
    
    
    
    
        switch_track_off.xml
    
    
        
            
                
                
                
    
                
            
        
    
    

    Thanks stevenp without your comment i cannot solve this

提交回复
热议问题