Hi All,
I m having problem in setting soem items in list. getChildAt() returns null
if its not in the visible area :(, is there any workaround for this?
for (int i = 1; i < getListView().getCount(); i++)
{
mCheckBox =
getListView().getChildAt(i).findViewById(R.id.check);
mCheckBox.setVisibility(View.VISIBLE);
Flag = true;
}
Assume my list is having 8 items, it works fine for 6 items, but anything
more 6 is a fail.
Any help is appreciated...
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---