Problem with multi-select listview

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Problem with multi-select listview

Postby kitty » Fri Jan 29, 2010 8:16 am

Hi all,

I wrote an application in which i'm listing out the files with Check boxes i.e., i'm displaying the names of the files existing in the device. The problem with the list is when i click the list item the file should be opened but the onClicklistener of that listview is not working, when i place the checkbox in the list. For that to happen i'm using the checkbox, i'm trying to open the file by capturing the click on checkbox in the Listview. But i'm not able to capture the position of the checkbox that was toggled.

My goal is to open the file that was checked or clicked.

Please share your ideas with me.

Junior Developer
Junior Developer
Posts: 21
Joined: Wed Dec 02, 2009 12:00 pm
Location: India


Postby snowwire » Tue Feb 02, 2010 8:58 am

Hi Kitty

Try using the OnItemClickListener of the ListView. That will allow you to receive an event when the list is clicked and will also tell you which item was selected.

See here for more details ... tview.html.

Hope that helps
Posts: 6
Joined: Tue Feb 02, 2010 7:32 am


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests