In res/drawable make the xml file.
And add code as below. Set the color you want.
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<gradient
android:startColor="#E77A26"
android:endColor="#E77A26"
android:angle="270" />
<stroke
android:width="3dp"
color="#0F58A7" />
</shape>
</item>
<item android:state_focused="true" >
<shape>
<gradient
android:endColor="#0F58A7"
android:startColor="#0F58A7"
android:angle="270" />
<stroke
android:width="3dp"
color="#0F58A7" />
</shape>
</item>
<item>
<shape>
<gradient
android:endColor="#0F58A7"
android:startColor="#0F58A7"
android:angle="270" />
<stroke
android:width="3dp"
color="#0F58A7" />
</shape>
</item>
</selector>
cheers,
Vaikunth
On Feb 23, 4:07 am, hap 497 <[email protected]> wrote:
> Hi,
> In my own android xml file, how can I specify to use android's
> highlight color (orange) ?
>
> i.e. how can I fill in the following field so that i uses android's
> highlight color?
> android:color="......'
>
> Thank you.
--
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