Search code examples
androidpositionandroid-spinner

How to set spinner window position on below of a spinner


Is there any method to set default spinner position , I just want to show my spinner window below the spinner title but normally when we click on spinner ,the window popup on above the title ,so is there any way to show the popup below the title.


Solution

  • For this spinner, you may use like this

    android:dropDownVerticalOffset="40dp"

     <android.support.v7.widget.AppCompatSpinner
          android:spinnerMode="dropdown"
          android:dropDownVerticalOffset="40dp"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"/>
    

    Now Drop down will show as per your requirement.