How do I add a bullet symbol in TextView?

后端 未结 9 1126
感动是毒
感动是毒 2020-11-30 17:27

I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible?

9条回答
  •  遥遥无期
    2020-11-30 18:20

    Another best way to add bullet in any text view is stated below two steps:

    First, create a drawable

    
    
    
        
        //set color of bullet
    
        
       
    
    

    Then add this drawable in textview and set its pedding by using below properties

    android:drawableStart="@drawable/bullet"
    android:drawablePadding="10dp"
    

提交回复
热议问题