I want to create a button that "looks" like a spinner element using
the declarative XML layout approach.

This question was asked in Oct 2009, but I could not find a direct
answer to the following post:
http://groups.google.com/group/android-developers/browse_thread/thread/cea957fc7772adb9

After some investigation I found a solution that I hope others will
find useful, it involves setting the background attribute of the
button node appropriately:

<Button
        android:background="@android:drawable/btn_dropdown"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

Enjoy!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to