7 messages in com.googlegroups.android-beginnersRe: Change default color of focus fro...
FromSent OnAttachments
lavanyaMar 19, 2008 7:55 am 
Megha JoshiMar 19, 2008 3:01 pm 
lavanyaMar 20, 2008 2:20 am 
Megha JoshiMar 20, 2008 7:07 pm 
lavanyaMar 20, 2008 8:32 pm 
Kevin WuMar 24, 2008 11:16 pm 
Kevin WuMar 24, 2008 11:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Change default color of focus from orange to green?Actions...
From:lavanya (lava@gmail.com)
Date:Mar 20, 2008 8:32:46 pm
List:com.googlegroups.android-beginners

Hi,

Thanks for the help Megha.Got what I wanted.

<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="false" android:state_selected="true" android:drawable="@drawable/blue"

/> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/green" />

<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/silver" />

<item android:state_selected="true" android:drawable="@drawable/lightyellow" />

<item android:drawable="@drawable/lightgreen" />

</selector>

If I use the code above things seem to work.However,if I declare the colors directly (as in my previous post) I get an error.Maybe its because a drawable can only reference other drawables?Anyways,thanks again.