Upon checking the android documentation for obtainstyledattributes(), I found the following:
TypedArray obtainStyledAttributes (AttributeSet set,
int[] attrs,
int defStyleAttr,
int defStyleRes)
Now my problem is what exactly is attrs used for in this method? According to the android documentation the attrs are for "The desired attributes to be retrieved." However, this make no sense to me.
What does an int array have to do with retrieval of the desired attributes?
If I want to get the desired attribute shouldn't I be passing in just a single integer instead of an array of integer?