I would like the spinner dropdown to open right below the spinner itself. E.g.:
How can i set the position of spinner dropdown?
I would like the spinner dropdown to open right below the spinner itself. E.g.:
How can i set the position of spinner dropdown?
For dropdown Spinner mode you can use this:
This set vertical offset of dropdown by spinner height.
You have to extend Spinner and change the location of AlertDialog (spinner when clicked acts as alertDialog).
Code (does a bit more than just position, it also sets background for opened spinner):
Then you just gotta insert it to your layout with "yourPackage.CustomSpinner" element like:
Declare the spinner mode as a dropdown:
then use the vertical offset to close the gap:
Spinner Android Documentation