/**
* Get a application resource Drawable by ResourceName.
*Returns Null if the Drawable is not found.
*/
public static Drawable GetApplicationDrawable(String ResourceName) {
int resourceId = BA.applicationContext.getResources().getIdentifier(ResourceName, "drawable", BA.packageName);
if (resourceId == 0) {
return null;
} else {
return BA.applicationContext.getResources().getDrawable(resourceId);
}
}