why TypedArray.getIndexCount() always returns 0
<pre><code>&lt;!--attrs.xml--&gt;
&lt;resources&gt;
    &lt;declare-styleable name="View2"&gt;  
        &lt;attr name="textColor" format="color"/&gt;  
        &lt;attr name="textSize" format="dimension"/&gt;  
    &lt;/declare-styleable&gt; 
&lt;/resources&gt;
&lt;!--styles.xml--&gt;
&lt;resources&gt;
    &lt;style name="View2"&gt;
        &lt;item name="textColor"&gt;#ffffffff&lt;/item&gt;
        &lt;item name="textSize"&gt;22dip&lt;/item&gt;
    &lt;/style&gt;
&lt;/resources&gt;
&lt;!--the View2 class defined--&gt;
public View2(Context context, AttributeSet attrs) {
    super(context, attrs);   
        TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.View2);
    final int len =array.Length();
        final int N =array.getIndexCount();//why N==0,because i initialize in styles.xml
}
&lt;!--the callback method,like in Activity.onCreate(..)--&gt;
@Override 
public void onCreate(Bundle savedInstanceState) {  
    super.onCreate(savedInstanceState);  
    View2 v = new View2(this,null);
} 
</code></pre>

<p>I declare a styable name="View2" in attrs.xml,and then i initialize the two attrs in the styles.xml,and then i obtainStyle in TypedArray,and it's a question,why N==0,because i initialize the two attrsin styles.xml</p>
