Android's spinner text align right -
i has spinner contains 3 items:"english", "simplified chinese", "traditional chinese".
if select "english", spinner show below picture.
means after select , show selected one, not items list below:
layout.xml below:
<relativelayout android:layout_width="match_parent" android:layout_height="match_parent" > <spinner android:id="@+id/spinner1" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignparentright="true" android:layout_centervertical="true" android:background="@drawable/spinner_selector" android:gravity="right" /> </relativelayout>
i want set text align right.
width seems set longest item.
, text align left.
how can modify it?
Comments
Post a Comment