Sunday, September 5, 2010

[android-developers] click handler with tabs

Hi I have a small app that is basically laid out in two tabs. Both
tabs have an edit text, some radio buttons and a clickable button at
the bottom.
Now i managed to get the app working fine so that you entered a number
selected a radio button and clicked the calculate button.
When the button was clicked the edit text would change to show the
outcome of the calculation specified by the user.
My only problem is that now i have two tabs coded out identically
(with the exception of the object ids being different), they both
won't calculate anything
In the public class i tried adding a new private EditText with a new
name.
In the public void i specified the id of both the EditTexts correctly
and i coded each tab contents with their respective edit text name
I have also tried rearranging the code here and there but nothing
seems to work
Can anyone lend a hand?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment