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
You can also achieve this by setting color to background drawable like this
TextView textView = (TextView) findViewById(R.id.my_text_view); ((GradientDrawable)textView.getBackground()).setColor(R.color.my_color);