ApplicationUtil.getAppContext().getColor(android.R.color.transparent)) code example Example: getcolor deprecated ContextCompat.getColor(context, R.color.color_name)