Help with a custom View attributes inside a Android Library Project
<p>I have a custom PieTimer View in an Android Library Project</p>

<pre><code>package com.mysite.android.library.pietimer;

public class PieTimerView extends View {
...
</code></pre>

<p>I also have a XML attributes file which I use in my PieTimer</p>

<pre><code>    TypedArray a = context.obtainStyledAttributes(attrs,
        R.styleable.PieTimerView);
</code></pre>

<p>The XML styleable file looks like this</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
     &lt;declare-styleable name="PieTimerView"&gt;
        &lt;attr name="max_size" format="dimension" /&gt;
        &lt;attr name="start_angle" format="string" /&gt;
        &lt;attr name="start_arc" format="string" /&gt;
        &lt;attr name="ok_color" format="color" /&gt;
        &lt;attr name="warning_color" format="color" /&gt;
        &lt;attr name="critical_color" format="color" /&gt;
        &lt;attr name="background_color" format="color" /&gt;
    &lt;/declare-styleable&gt;
&lt;/resources&gt;
</code></pre>

<p>I have the PieTimer in a layout file for a  project that uses the library, like this</p>

<pre><code>&lt;RelativeLayout 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root" android:layout_gravity="center_horizontal"
    xmlns:app="http://schemas.android.com/apk/res/com.mysite.android.library.myapp"
    xmlns:pie="com.mysite.library.pietimer"
    &gt;

&lt;com.mysite.library.pietimer.PieTimerView
    pie:start_angle="270" 
    pie:start_arc="0" 
    pie:max_size="70dp"
    pie:ok_color="#9798AD"
    pie:warning_color="#696DC1"
    pie:critical_color="#E75757"
    pie:background_color="#D3D6FF"

    android:visibility="visible"
    android:layout_height="wrap_content" android:id="@+id/clock"
    android:layout_width="wrap_content" 
    android:layout_alignParentRight="true"&gt;
&lt;/com.mysite.library.pietimer.PieTimerView&gt;
</code></pre>

<p>Previously I was using the <code>xmlns:app</code> as the namespace for attributes like <code>app:ok_color</code> but when I made my project a library project and has a Free and Full version implementing the library, I found it no longer worked so I added the pie namespace. </p>

<p>The PieTimerView displays but the attributed do not work, they use the default (this was not occurring before) so there is some namespace conflict hapenning here.</p>

<p>What is the correct way of doing this?</p>
