Received: by 10.220.123.134 with SMTP id p6mr184907vcr.0.1300280654941; Wed, 16 Mar 2011 06:04:14 -0700 (PDT) X-BeenThere: android-developers@googlegroups.com Received: by 10.220.109.136 with SMTP id j8ls681200vcp.5.p; Wed, 16 Mar 2011 06:02:51 -0700 (PDT) Received: by 10.220.89.142 with SMTP id e14mr88989vcm.52.1300280571628; Wed, 16 Mar 2011 06:02:51 -0700 (PDT) Date: Wed, 16 Mar 2011 06:02:51 -0700 (PDT) From: Emanuel Moecklin <1gravity...@gmail.com> Reply-To: android-developers@googlegroups.com To: android-developers@googlegroups.com Message-ID: <23587403.169.1300280571233.JavaMail.geo-discussion-forums@yqgo15> In-Reply-To: Subject: Re: [android-developers] Re: custom attributes in library projects MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_167_4765873.1300280571227" ------=_Part_167_4765873.1300280571227 Content-Type: multipart/alternative; boundary="----=_Part_168_5605454.1300280571228" ------=_Part_168_5605454.1300280571228 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit You are accessing custom attributes in Java code but this thread is about using custom attributes in xml layouts. In your example that would be e.g. having parcel:color="@android:color/black" in cwac_colormixer_activity.xml. I'm not even sure why you need the namespace declaration in your layouts ( xmlns:parcel= "http://schemas.android.com/apk/res/com.commonsware.cwac.colormixer.demo") if you are not accessing the attributes in the xml. If you would then you would get a compilation error because the package name in your library project is com.commonsware.cwac.colormixer and not com.commonsware.cwac.colormixer.demo --> the compiler would't find the custom attributes. As far as I can see there's no fix in Android 11. Emanuel Moecklin ------=_Part_168_5605454.1300280571228 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You are accessing custom attributes in Java code but this thread is about u= sing custom attributes in xml layouts.
In your example that would be e.= g. having parcel:color=3D"@android:color/black" in cwac_colormixer_act= ivity.xml.
I'm not even sure why you need the namespace declarati= on in your layouts (xmlns:parcel=3D"http://schemas.android.com/apk/res/com.commonsware.cwac.colormixer.dem= o") if you are not accessing the attributes in the xml.
=
If you would then you would get a compilation error because the packag= e name in your library project is com.commonsware.cwac.colorm= ixer and not com.commonsware.cwac.colormixer.demo --> th= e compiler would't find the custom attributes.

<= div>As far as I can see there's no fix in Android 11.

<= div>Emanuel Moecklin ------=_Part_168_5605454.1300280571228-- ------=_Part_167_4765873.1300280571227--