Tuesday, 28 April 2015

Set Text Color for textView Android

You can use
  textView1.setTextColor(getResources().getColor(R.color.mycolor))
or
  textview1.setBackgroundColor(Color.parseColor("#ffffff"));
or
 textview1.setBackgroundColor(Color.RED);
or
 textView1.setBackgroundColor(R.color.black);

No comments:

Post a Comment