It's actually pretty simple, but it took me a little while to figure
out. You have to set the list to allow its items to be focusable, and
then set whichever items you want to be clickable, focusable, and have
a background to display when clicked.
So first, call setItemsCanFocus(true) on your li
For your reference, one way to work around this constraint of Android
ListView is to "redirect" an onClick event on a listview rwo to the
button on the row by means of calling performClick() in the onClick()
of the GetView() of the listview adapter class.
On Nov 29, 7:52 am, Stefan <[EMAIL PROTEC
Stefan wrote:
> Adding the button itself to the row and handling the button clicks
> works fine, the problem is that for every row that has a button, you
> can't click on the row itself anymore. You can click on the row's
> button, but clicking on the rest of the row does not generate
> ItemClick
3 matches
Mail list logo