fitnesskim / tree-view-list-android

Automatically exported from code.google.com/p/tree-view-list-android
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

How to remove the check boxes and replace it with clickable rows #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I want to modify the code so that there are no check boxes instead there are 
just rows which can be clicked. Clicking on any of the rows should work same as 
clicking of the check box. 
Any suggestions on how to do this??
Thanks

Original issue reported on code.google.com by jayasund...@gmail.com on 7 Jun 2011 at 6:01

GoogleCodeExporter commented 9 years ago
It's easy - pretty much standard android approach for list view:  - look here:
http://code.google.com/p/tree-view-list-android/source/browse/src/pl/polidea/tre
eview/demo/SimpleStandardAdapter.java

You need to derive from the Abstract adapter and override few methods to 
inflate your own layout rather than demo_list_item.xml - then you use your 
adapter instead of SimpleStandardAdapter.

Original comment by ja...@potiuk.com on 9 Jun 2011 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by ja...@potiuk.com on 9 Jun 2011 at 9:39