Android setText from custom xml or html -


i'm not sure possible set text in android custom xml or html?

example: have text.xml or text.html contains

<item> <id>1</id> <question>how r u?</question> <answer>fine</answer> <answer right>good</answer> <answer>bad</answer> <answer>not in mood</answer> </item> 

now in activity, have 5 textviews. first 1 gets set qustions be"how r u?" .. , other 4 "fine", "good", "bad", , "not in mood". when click on "good" because in file <answer right> activity using intent , when click on rest of answers take me specific activity too.

you need xmlparser parse xml files , set text in textview

check link

parsing xml data

parsing xml using dom parser assets


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -