Code example for TypedArray

Methods: getResourceId

0
	public Drawable buildDrawable() {
		return mTheme.getPackageContext().getResources().getDrawable(mDrawableResourceId);
	} 
	 
	public static DrawableBuilder build(KeyboardTheme theme, TypedArray a, final int attr) {
		int resId = a.getResourceId(attr, 0);
		return new DrawableBuilder(theme, resId);
	} 
}