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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -