how to have two views .........

Put your problem here if it does not fit any of the other categories.

how to have two views .........

Postby abhilash » Mon Feb 25, 2008 10:50 am

like i am having a button and some some text i should diplay on the screen how can i......... i am displaying buttons but unable to display the wanted text.........

i did setcontentview(r.layout.xyz)............but apart from i shoould append some text to that scren how can i .......?
abhilash
Developer
Developer
 
Posts: 26
Joined: Fri Feb 22, 2008 11:21 am
Location: HYDERABAD

Top

Postby WauloK » Mon Feb 25, 2008 1:01 pm

You could create a label and then use code to change the text in it.

Refer to my application: http://www.anddev.org/my_first_google_a ... -t824.html

When you click the CALC button it prints text at the bottom next to Result:
AndroidChi - Applications for the Google Android platform.
User avatar
WauloK
Developer
Developer
 
Posts: 32
Joined: Wed Dec 19, 2007 4:32 am
Location: Sydney, Australia

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests