Does any changes in the child of listview is reflected in its adaptor.

by Manoj » Thu, 21 Jan 2010 17:10:28 GMT


Sponsored Links
 Hi can anybody tell me exactly how can i get the the exact status of
the listview items.(I have used checkbox as the listview item)



Does any changes in the child of listview is reflected in its adaptor.

by Nikhil Agarwal » Thu, 21 Jan 2010 19:36:55 GMT


 I suppose you mean that how can we extract which items are checked.
That can be done using:-
SparseBooleanArray checkedItems = getListView().getCheckedItemPositions
();
You can check each item's state by using its position. So for the 0th
position, use checkedItems.get(0) and check if it is true or false.



> the listview items.(I have used checkbox as the listview item)


Sponsored Links


Does any changes in the child of listview is reflected in its adaptor.

by Manoj » Thu, 21 Jan 2010 20:21:42 GMT


 Mr. Nikhil can you send me the code to use this method .....

Thanks in advance



Other Threads

1. Where is source code for Dev Tools?

Could someone please tell me where I can find the source code for Dev
Tools (i.e., Sync, Media Browser, and etc)? Or are they under
different names in the source code?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~

2. How to start android emulator in landscape mode?

Create an AVD with landscape skin.

$ android create avd --name somename --skin HVGA-L

(or use the AVD Manager in Eclise ADT 0.9.1)

If you omit the parameter, --skin will display the valid choices.

R/




> 

3. Notification without firing any Intent

4. Maintaining two Eclipse installs with two Android SDKs

5. How to get list id from many list?

6. Why can't I en ter android-developers:reference:android.R.s tyleable? Is it availableé”›

7. Problem launching an Activity (other than built-in with classes loaded) from widget click