Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. android customize spinner
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <shape xmlns:android="http://schemas.android.com/apk/res/android"
  4.     android:shape="rectangle">
  5.     <stroke
  6.         android:color="#FFFFFF"
  7.     />
  8.     <solid
  9.         android:color="#FFFFFF"
  10.     />
  11.     <padding
  12.         android:left="5dp"
  13.         android:top="5dp"
  14.         android:right="5dp"
  15.         android:bottom="5dp"
  16.     />
  17.     <corners
  18.         android:radius="10dp"
  19.     />
  20.     <size
  21.         android:height="70dip"
  22.     />
  23. </shape>
  24. <bitmap
  25.     xmlns:android="http://schemas.android.com/apk/res/android"
  26.     android:src="@drawable/arrow_icon"
  27.     android:gravity="right" />
  28.        
  29. <TextView  
  30.     android:layout_width="fill_parent"
  31.     android:layout_height="wrap_content"
  32.     android:text="This looks like a spinner now!"
  33.     style="@android:style/Widget.Spinner"
  34.     />