Android GetDrawable перед API 21
Drawable greenProgressbar = context.getResources().getDrawable(R.drawable.custom_progressbargreen);
Fine Fowl
Drawable greenProgressbar = context.getResources().getDrawable(R.drawable.custom_progressbargreen);