Ordered lists inside an Android TextView

前端 未结 7 1140
星月不相逢
星月不相逢 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:11

    1. Go to res/values/strings.xml then paste below code

      
        
    2. 1) Item 1
    3. \n
    4. 2) Item 2
    5. \n
    6. 3) Item 3
    7. \n
    8. Then go to your layout file which contains TextView and replace with below code

      
      

提交回复
热议问题