I have listView with 4 elements ( 2x TextView and 2x button ), What I want to do is disable default onItemClickListener, and set clicklisteners for 2 items in my ListView.
Any idea ?
Thanks in advance!
I have listView with 4 elements ( 2x TextView and 2x button ), What I want to do is disable default onItemClickListener, and set clicklisteners for 2 items in my ListView.
Any idea ?
Thanks in advance!
Use onItemclickListener and if you are using Button or ImageButton (or any UI component which may take the focus from the list item)inside the list item UI, set this field as the following
android:focusable="false"
Don't implement onItemclickListener
. This will not give you any update of item click. Only register onClick
listener to views.
Edit
Reference to use Explicit adapter implementation.
1) http://www.vogella.com/articles/AndroidListView/article.html#listview