Well, then probably something is different about the layout of "v", so
that findViewById returns null for the given "id".
Or maybe it always returns null, but your code only tries to access the
value when getChildrenCount is 0.
Either way, the view with id= explist_indicator is not there when your
code expects it to be.
-- Kostya
30.06.2011 1:37, ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ пишет:
View ind = v.findViewById( R.id.explist_indicator);
ImageView indicator = (ImageView)ind;
indicator is just a name of an image viewa and I change the visibility.
The code works perfectly when I change the value of the
getChilderCount(groupPosition) to something other than 0.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en