android - streching spinner icon -


when using own background theme spinner stretching icon.

enter image description here

my spinner code :

<spinner android:id="@+id/spinnercategory" style="@style/spinner"                     android:entries="@array/category_array" android:prompt="@string/category_prompt"                     android:background="@drawable/spinner" /> 

my spinner.xml is:

<selector xmlns:android="http://schemas.android.com/apk/res/android">      <item android:state_window_focused="false" android:state_enabled="true"         android:drawable="@drawable/btn_dropdown_normal" />      <item android:state_pressed="true" android:drawable="@drawable/btn_dropdown_pressed" />     <item android:state_focused="true" android:state_enabled="true"         android:drawable="@drawable/btn_dropdown_selected" />     <item android:state_enabled="true" android:drawable="@drawable/btn_dropdown_normal" />  </selector>  

and images copied sdk 4.

so kindly me out. how can stop spinner icon stretching.

i had same prob dear..i set(hardcoded) height of spinner 2 somewhere near 48-50 dip...


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -