加载数据到android的文本视图 [英] loading data to text view in android

查看:180
本文介绍了加载数据到android的文本视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HII每一个哥们,

我有像是,否,Dontknow一个XML标记解析我的XML文件和放大器;获得从XML数据,,现在我需要显示在saperate TextView中,即是应显示在一个TextView中,否应显示在其他文本视图和放每个选项; Dontknow应显示在另一个TextView的,但我怎么能做到这一点,任何一个可以给我一些想法(是新来的机器人),,,感谢名单提前

i have a xml tag like "Yes,No,Dontknow " am parsing the xml file & getting the data from xml,,now i need to display each options in saperate textview i.e 'yes' should be displayed in one textview, 'No' should be displayed in other text view & 'Dontknow' should be displayed in another textview, but how can i do this, can any one give me some idea(am new to android),,,thanx in advance

推荐答案

使用<一个href="http://developer.android.com/reference/android/widget/TextView.html#setText%28java.lang.CharSequence,%20android.widget.TextView.BufferType%29"相对=nofollow>的setText()的TextView的方法来加载文本内容。

Use setText() method of TextView to load text into it.

这篇关于加载数据到android的文本视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆