Doughy wrote:
I am trying to create a very simple program that will change the text
of a label object when I click a button. I have created the button
and the label using the XML file, but now I have no idea how I can
write the callback when the user presses the button.
There are hundreds
I only have a total of 7 samples in that directory. What version of
the SDK are you running?
On Nov 22, 5:52 am, Mark Murphy [EMAIL PROTECTED] wrote:
Doughy wrote:
I am trying to create a very simple program that will change the text
of a label object when I click a button. I have created
Doughy wrote:
I only have a total of 7 samples in that directory. What version of
the SDK are you running?
There are 7 sample projects. However, the ApiDemos has hundreds of
sample activities. Virtually every source file in ApiDemos is its own
mostly-standalone activity.
In the emulator,
OK, I see what you mean. Thanks a ton for your help.
I got my button callback working. Now I have one more question. Is
it necessary to create the button and label objects in the main code,
even though they are already declared in the UI XML file? For
example, the only way I could figure out
I have looked at lot of examples but so far I have only seen findViewById()
being used and the API also seems to have this technique only for accessing
different widgets.
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials
On Sat, Nov 22, 2008 at 12:38 PM, Doughy [EMAIL
Doughy wrote:
Is
it necessary to create the button and label objects in the main code,
even though they are already declared in the UI XML file?
Only if you need to access them from Java.
For
example, the only way I could figure out to change the TextView text
was to do the following
6 matches
Mail list logo