What I'm trying to accomplish is to use the spinner dropdown's closing action to trigger another event. Since the dropdown closes no matter where you touch on the screen, I guess that there is a listener that waits for a touch/click/etc. at any location, but I can't find that listener.
I can use OnItemSelectedListener to trigger an event when an entry from the dropdown is chosen, easy. I can also listen to the FrameLayout and trigger the event based on that, but it required an extra touch on the screen (maybe the first one gets absorbed by the spinner's listener(?)). There are also other buttons on the screen, so checking all of them as well would be complicated.
Do you know where is the code that actually opens and closes a spinner is?