Monday, October 26, 2009

[android-developers] How to style a Button to look like a Spinner?

Hi!

I want to create a Button that looks like a Spinner.
Programmatically, this works fine:

Button button = new Button(this, null,
android.R.attr.spinnerStyle);

How can I do the same thing in my layout XML files?

Regards //Johan

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

No comments:

Post a Comment