xml - android customize spinner -
i want know if possible customize textview. want spinner define xml used layout background in xml put
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:color="#ffffff" /> <solid android:color="#ffffff" /> <padding android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" /> <corners android:radius="10dp" /> <size android:height="70dip" /> </shape> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/arrow_icon" android:gravity="right" />
but doesn't work want have in css, define round corners, padding, color , add icon background on right. icon arrow spinner arrow.
set textview in xml this.
<textview android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="this looks spinner now!" style="@android:style/widget.spinner" />
Comments
Post a Comment