EverettG wrote:
> I am creating a Spinner but when it displays in the Emulator it does
> not display any sort of arrow to let the user know to click on it. If
> you click on it, it works properly and you can choose from the items.
> I have looked through Internet resources and three books but cannot
> seem to find an answer to this. Here are my files:

<snip>

>         testSpinner.setBackgroundColor(Color.BLUE);

Get rid of this line, and I suspect your drop-down button will appear.

Most interactive widgets in Android use the background for part of the
interactivity. In the case of Spinner, I think the drop-down button is
part of the background of the widget. By replacing the standard
background with a solid blue background, you inadvertently "take out"
the drop-down button.

You'll run into this problem as well if you try replacing the background
of any widget that is focusable (e.g., Button), as the orange focus ring
is part of the widget background.

If you truly wish to customize the widget background, you can do so, but
you will need to jump through a fair number of hoops. FWIW, I just made
a note to cover some of that process in the next update to my Advanced
Android book.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.5 Programming Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
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