Android GetDrawable sebelum API 21
Drawable greenProgressbar = context.getResources().getDrawable(R.drawable.custom_progressbargreen);
Fine Fowl
Drawable greenProgressbar = context.getResources().getDrawable(R.drawable.custom_progressbargreen);