I have a TextView, what I want is to make the TextView shape circle and then set different background colors based on different conditions I have u
TextView
TextView textView = (TextView) findViewById(R.id.my_text_view); Drawable drawable = textView.getBackground(); drawable.setColorFilter(getResources().getColor(color), PorterDuff.Mode.SRC_IN);
works for me