开发者

How to present parsed data to an XML built UI?

It's probably obvious but I can't figure out how I'm supposed to link the data that has already been parsed to an XML built UI? As in, I want to make a template for where the data should go on the UI and when the Activity is called, it will plug the data int开发者_如何学编程o the XML created UI.


So for example in your xml defintion you have

<TextView android:id="@+id/hello" ... />

Then in your code you'd write:

TextView txtHello = (TextView)findViewById(R.id.hello);

and then you have an object that you can, for example call .setText() on

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜