/** Returns the drawable associated with the given id. */
private Drawable getResourceDrawable(Resources resources, int resId)
throws NotFoundException {
Drawable drawable = resources.getDrawable(resId);
Log.e("Width:", "" + drawable.getIntrinsicWidth());
Log.e("Height:", "" + drawable.getIntrinsicHeight());
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),
drawable.getIntrinsicHeight());
return drawable;
}
private Drawable getResourceDrawable(Resources resources, int resId)
throws NotFoundException {
Drawable drawable = resources.getDrawable(resId);
Log.e("Width:", "" + drawable.getIntrinsicWidth());
Log.e("Height:", "" + drawable.getIntrinsicHeight());
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),
drawable.getIntrinsicHeight());
return drawable;
}