How to show tick marks for Discrete Slider?

后端 未结 2 830
不知归路
不知归路 2021-02-05 23:14

I\'m trying to style a seekbar/slider like the one labeled Discrete Slider - Click (that has the little tick mark indicators) in the Material Design Gu

2条回答
  •  悲&欢浪女
    2021-02-05 23:38

    Add tick marks with the style attribute:

    
    

    Or add them manually by setting the tickMark drawable:

    
    

    tickmark.xml

    
        
        
    
    

提交回复
热议问题