title: How to make TextView shape circle and set different background color based on condition
body: <p>I have a <code>TextView</code>, what I want is to make the <code>TextView</code> shape circle and then set different background colors based on different conditions I have used. I am able to set Background color based on different conditions but not able to make the <code>TextView</code> shape circle. So how that can be done. Please help me to solve this out.</p>
  <p><strong>Code I have used:</strong></p>
  <pre><code>TextView txt_stage_display = (TextView)findViewById(R.id.txt_stage_display);
  
  if(m_enStage[position] == enSTAGE_START)
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#D48393&quot;));
  }
  else if(m_enStage[position] == enSTAGE_FLOW)
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#D48393&quot;));
  }
      else if(m_enStage[position] == enSTAGE_SAFE)
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#66B0CC&quot;));
  }
  else if(m_enStage[position] == enSTAGE_UNSAFE)
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#D8C627&quot;));
  }
  else if(m_enStage[position] == enSTAGE_FERTILE)
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#67A05E&quot;));
  }
  else
  {
      txt_stage_display.setBackgroundColor(Color.parseColor(&quot;#808080&quot;));
  }
  </code></pre>