Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the position of opened spinner?

I would like the spinner dropdown to open right below the spinner itself. E.g.:

enter image description here

How can i set the position of spinner dropdown?

like image 267
DixieFlatline Avatar asked May 06 '11 06:05

DixieFlatline


1 Answers

Declare the spinner mode as a dropdown:

android:spinnerMode="dropdown"

then use the vertical offset to close the gap:

android:dropDownVerticalOffset="-15dp"

Spinner Android Documentation

like image 76
Tr0yJ Avatar answered Sep 21 '22 04:09

Tr0yJ