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

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