Ordered lists inside an Android TextView

前端 未结 7 1152
星月不相逢
星月不相逢 2020-12-30 06:47

I want to display an ordered list inside a TextView, for example:
1) item 1
2) item 2

Using the following layout:



        
7条回答
  •  旧巷少年郎
    2020-12-30 07:09

    Here is a solution I use. You can copy and paste it into an activity to see how it works, but you should change all attributes with variables for production. You can play with the padding parameters to indent it according to your needs. Instead of digits, you can use the bullet char if you want bullet list.

    
    
                
    
                
            
    
    
    
            
    
                
    
                
            
    

提交回复
热议问题