I’ve tried using this link but I can’t get it to work for a spinner and a radio button.
Is there a better or easier way to share a listener between various items of different varieties?
EDIT – I should have mentioned that the reason I want to share the listener is that I need to use various adapters that I’m having trouble using in other classes.
You can define a class that implement listener for both Spinner and radio button,
create one instance of the class and then assign that instance to both the radio button and the spinner.
For example: