in fact I think that there's something wrong with this line:
LinearLayout groupLayout =
(LinearLayout)getExpandableListAdapter().getGroupView(i, false,
null, null);
because the only argument I'm sure that it's right is the i variable
which retrieves the groupView, but fortunately that still returns the
groupView successfully and I get no "NullPointerException" as I was
getting on one of my other attempts, so from what I see it gets each
groupView and also each button from the group.
this is what I get when I print the objects on every iteration:
02-05 18:57:27.928: INFO/myTag(17442): groupLayout:
android.widget.linearlay...@44be3de0
02-05 18:57:27.928: INFO/myTag(17442): button:
android.widget.but...@44be5008
02-05 18:57:27.936: INFO/myTag(17442): groupLayout:
android.widget.linearlay...@44be6510
02-05 18:57:27.944: INFO/myTag(17442): button:
android.widget.but...@44be7400
02-05 18:57:27.952: INFO/myTag(17442): groupLayout:
android.widget.linearlay...@44be8468
02-05 18:57:27.952: INFO/myTag(17442): button:
android.widget.but...@44be9358
Cheers!
On Feb 5, 6:48 pm, TreKing <[email protected]> wrote:
> On Fri, Feb 5, 2010 at 1:51 PM, Gustavo <[email protected]> wrote:
> > So, I guess I did what you told me to but the problem is that I'm not
> > getting that print on my log whenever I hit the button, I already
> > tried to set "clickable=true" on my xml but still nothing... what
> > could it be? am I doing it right?
>
> Does anything happen when you click the button? Does it highlight on and off
> to indicate it's been tapped?
>
> ---------------------------------------------------------------------------
> ----------------------
> TreKing - Chicago transit tracking app for Android-powered
> deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en