View problem - how to show integer from activity in XML?

Posted by Oliver Goossens on Stack Overflow See other posts from Stack Overflow or by Oliver Goossens
Published on 2010-05-18T18:14:58Z Indexed on 2010/05/18 18:20 UTC
Read the original article Hit count: 436

Filed under:
|
|
|

Hi there,

I started two days ago with android, gone through the hello android stuff and also started to read the Hello Android book, which is great.

PROBLEM:

I use in my app - VERY EASY APP- the XML output. So basically the main activity just tells the android to show the XML layout of main.

But what if I have in the activity - code defined integer variable and I want this integer variable also be shown on the display?

How do I PUSH the integer variable to the XML??? From main XML reference to other strings in XML is easy - @string/app_name ... but how do I use the integer variable from the activity?

Please help

Thank you

Oliver

© Stack Overflow or respective owner

Related posts about Xml

Related posts about output