Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change the TextView background color to initial value

after I set the TextView backgroundColor to whatever I want.

Fri2030 = (TextView) findViewById(R.id.tvFri2030); Fri2030.setBackgroundColor(Color.BLUE);

how to clean up the TextView backgroundColor if I don't want any color on it and initialize it. (don't wanna cover by other colors)

thx for the help!!

like image 743
Ricky Zheng Avatar asked Jan 13 '12 08:01

Ricky Zheng


2 Answers

setBackgroundColor(android.R.color.transparent);
like image 193
Raoul George Avatar answered Nov 15 '22 00:11

Raoul George


May this help you...once store all these value and later on when you need it then use them---

        TextView text=new TextView(this);
    text.getCurrentHintTextColor();
    text.getCurrentTextColor();
    text.getDrawingCacheBackgroundColor();
like image 25
Tofeeq Ahmad Avatar answered Nov 15 '22 00:11

Tofeeq Ahmad