Skip to content Skip to sidebar Skip to footer

Selected Item Doesnt Show On The Spinner Android

I have a spinner and I have added a custom style to spinner. Problem is when I select an item it doesnt show up on the spinner but when I use android spinner style it shows what I

Solution 1:

I tried several days on this problem. Actually code is pretty ok. problem was in the spinner.xml file. I had added a large padding to textview. Therefore, though spinner works it is not visible the selected item on spinner. Point is I forget xml file. :D

Solution 2:

Modify the padding in the layout spinner.xml file to a lower value, for ex:

<TextView xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="wrap_content"android:padding="8dp"android:textColor="#000000"android:textSize="14sp" />

Post a Comment for "Selected Item Doesnt Show On The Spinner Android"