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 2:20:21 am
List:com.googlegroups.android-beginners

Hi Megha,

Thanks for the link.Just what I was looking for. I created a file called custombackground.xml under /drawable :

<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:color="#5080"/> <item android:state_pressed="true" android:state_enabled="false" android:color="#5008" /> <item android:state_enabled="false" android:color="#2800" /> <item android:state_active="true" android:color="#2008" /> <item android:color="#2080"/> </selector>

Then in /layout/row.xml this is the code i added:

<?xml version="1.0" encoding="UTF-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/row" android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/SpecialText" android:background="@drawable/custombackground" />

I am getting the following error:

Binary XML file line#2: Error inflating class java.lang.reflect.Constructor