Text in a spinner changes height and width selecting another item topic

SOCIALIZE IT ⇨

I wrote this code for an Android spinner:

Code:


<Spinner
android:id="@+id/lstCommunity"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/community_string"
android:layout_alignLeft="@+id/txtName"
android:layout_below="@+id/txtName"
android:minHeight="0dp"
android:textSize="10sp"
android:background="@drawable/box" />


But the text in the spinner changes its height and width after selecting another item in the list.

So, initially it is a bit smaller than the height and width of the spinner, after selecting another item, it becomes really bigger than the spinners size.

How should i change my code?

xda-developers


0 commentaires:

Enregistrer un commentaire