GetCokor de Drawable en Java Android Studio

ContextCompat.getColor(getApplicationContext(),R.color.button_color)
Delightful Dog