Loading data to TextView in Android

前端 未结 5 1907
生来不讨喜
生来不讨喜 2021-01-28 23:22

I have a XML tag like \"Yes,No,Dontknow \" and I am parsing the XML file and getting the data. Now I need to display each option in separate TextView, i.e: \'yes\' should be dis

5条回答
  •  孤独总比滥情好
    2021-01-29 00:00

    You can just declare 3 separate TextView in you Activity layout file. Using attribute android:text you can assign the text for the TextView.

    Example:

    
    

提交回复
热议问题