android - Custom listview item select

I have a listview with each row a linear layout with a textview and an adjacent imageview. I've been able to implement setOnItemClickListener() with the functionality I want, this gets triggered when a row is clicked but I want it to be called when the imageview in the row is clicked. Any ideas?


You can set the onClick event in your custom adapter's getView method. check this link

you can set click listener on custom generated view items

put this code in your custom xml imageview file.


and set onClicklistner on imageview

you can also read : Android : How to set onClick event for Button in List item of ListView

Need Your Help

Music player page refresh

html refresh music

I'm working in a HTML website project and the client wants to incorporate some music when the page opens.

Android: Best way to save data stored in Application Singleton Class

android application-singleton

What's the best way to save the data stored in the Application Class (singleton) of an Android Application?