Loading data to TextView in Android

前端 未结 5 1956
生来不讨喜
生来不讨喜 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条回答
  •  Happy的楠姐
    2021-01-28 23:49

    If you want to split comma-separated strings, take a look at using java.util.StringTokenizer. You can tell it to use , as the token separator.

提交回复
热议问题