Last active
August 29, 2015 14:19
-
-
Save searover/e3807eae519f072b77b9 to your computer and use it in GitHub Desktop.
Resources obtainStyledAttributes function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public TypedArray obtainStyledAttributes(AttributeSet set, | |
int[] attrs, int defStyleAttr, int defStyleRes) { | |
final int len = attrs.length; | |
final TypedArray array = TypedArray.obtain(Resources.this, len); | |
// other code ..... | |
return array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment