Button Click And ListView Click
I have a ListView. on click of a list item I start a Activity. Now I have added a Button on that ListView and onclick of a button I want to start a another activity. After adding a
Solution 1:
Read this excellent blog post: Focus problems with list rows and ImageButtons
Essentially you should add the following to your root layout element in the row-item xml.
android:descendantFocusability="blocksDescendants"
Solution 2:
that is the concept. If u want to implement both clicks then write button click normally and for list item click did not use the listitem click.
Instead that you write onclick listener for converted view that you returned in getview()
Then both clicks will work
Post a Comment for "Button Click And ListView Click"