I’m trying to combine a listView with a button at the bottom, and everything is working UI-wise, I see my list and the Button at the bottom, except I can’t make the app react when the button is clicked.
I need both the list view and the button to be clickable but I can’t extend both ListActivity and Activity.
So, how do I get both a clickable list and a clickable item?
You can create your own OnClickListener within the class as follows:
Set button to use the OnClickListener as such:
And create the OnClickListener:
You can then fire off whatever you need within that OnClickListener, while keeping the List clickable as before.