I have a custom PieTimer View in an Android Library Project
package com.mysite.android.library.pietimer;
public class PieTimerView extends View {
...
This solution worked for me:
https://gist.github.com/1105281
It doesn't use the TypedArray and requires the view to have the library's project package name hardcoded in it.
It also does not use the styleable values on the programmatic level. You have to hardcode the attribute strings into the view as well.
You should however declare those same attribute names styleable for Lint to not show an error when you write the XML part.
A link to the original post on code.google.com:
http://code.google.com/p/android/issues/detail?id=9656#c17
It definitely beats copying the files and changing the namespaces but it still isn't as elegant as should be. Enjoy.