It already does change color -- when you either touch on it or or focus it,
the drop down arrow highlights.

If you want to make it look different, you can supply your own drawable to
it, which is a StateListDrawable that selects your own image to show based
on whatever state you are interested in.  Here is the one the system uses::

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android";>
    <item  android:state_window_focused="false"
android:drawable="@drawable/btn_dropdown_normal" />
    <item android:state_pressed="true"
android:drawable="@drawable/btn_dropdown_pressed" />
    <item android:state_focused="true" android:state_pressed="false"
        android:drawable="@drawable/btn_dropdown_selected" />
    <item android:drawable="@drawable/btn_dropdown_normal" />
</selector>



On Mon, Sep 7, 2009 at 8:22 PM, ash <[email protected]> wrote:

>
>
> no guyz... my problem is i want to change the color of the spinner
> when touch it on...
> Is there anyway to do this???
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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