title: How do I show text in my TextView with bold and multi coloured
body: <p>my requirement is to  show the Text in the TextView in multicoloured like rainbow color text and Bold, how can I achieve this.and I need to display them dynamically using java code..</p>
  
  <pre><code>TextView text=new TextView(context);
                          text.setText(status);
                      text.setBackgroundResource(R.drawable.grd_btn);
                      text.setGravity(Gravity.CENTER);
                      text.setPadding(2, 0, 2, 0);
                      text.setTypeface(font2,Typeface.BOLD);
                      text.setTextColor(Color.WHITE);
  </code></pre>