On Wed, Mar 16, 2011 at 9:02 AM, Emanuel Moecklin <[email protected]> wrote: > 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.
Oops, sorry. I'll have to take a look at this. BTW, AFAIK, the fix would be with the tools, not the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- 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

