if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
textView.setForeground(cancelView.getForeground());
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
textView.setForeground(cancelView.getForeground());
}