Code example for TypedValue

Methods: resolveAttribute

0
		return new PointF(point.x / dm.xdpi, point.y / dm.ydpi);
	} 
 
	/** Retrieves a single resourceId from the context and attribute id. **/ 
	public static int getThemedResourceId(Context context, int attrId) {
		TypedValue tv = new TypedValue();
		context.getTheme()
						.resolveAttribute(attrId, tv, true);
		return tv.resourceId;
	} 
 
}