Mark, Can u plz show me some sample code how u achieved it. On Jun 4, 6:12 pm, "Mark Murphy" <mmur...@commonsware.com> wrote: > > I have a list view which contains some 20 odd items along with a check > > box. Now when iam trying to delete an item by checking its checkbox, > > iam getting NullPointerException at below written code: > > > CheckBox cbox= (CheckBox) view.getChildAt(j).findViewById > > (R.id.alarmCheck); > > > here view.getChildAt(j) comes null. > > Now if I have six elements in this ViewList, which are visible on the > > emulator, then the same code just works fine. > > Problem arises when the list is long and it starts scrolling and some > > element are not visible. > > I am working on this problem for some days, any help will be highly > > apperciated. > > Rather than use your own checkboxes, I would use the built-in checklist in > ListView, as it will simplify what you are trying to accomplish. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---
[android-developers] Re: How to read not visible elements of listview
narendrasingh.bi...@gmail.com Thu, 04 Jun 2009 06:27:27 -0700
- [android-developers] How to read not visible... narendrasingh.bi...@gmail.com
- [android-developers] Re: How to read no... Mark Murphy
- [android-developers] Re: How to rea... narendrasingh.bi...@gmail.com
- [android-developers] Re: How to... narendrasingh.bi...@gmail.com
- [android-developers] Re: Ho... Streets Of Boston