Rewrite
It seems you want to center the text vertically in the element resource, as shown below, but your code examples are aimed at the drop-down menu ...

The top Spinner is the default layout android simple_spinner_item by default, and the bottom is the same, but android:gravity="center_vertical" added android:gravity="center_vertical" .
<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" style="?android:attr/spinnerItemStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" />
You can see that I used your theme with great minHeight . Here is a basic example of using this layout in an adapter:
Spinner spinner = (Spinner) findViewById(R.id.spinner); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.spinner_item, list);
I went with the assumption that you want CASH, Select Product, etc. focused on the shot, let me know if you are trying to do something else!
source share