How To Set Visibility Of Textview?
I want to check! For example - if (tv.Visible == true) then showMessage ('Yee it's Visible') else ('Its not visible'); I hope you're understand!
Solution 1:
You provide very little information, but I think this is what you are after...
TextViewtv= (TextView)findViewById(R.id.textView);
tv.setVisibility(View.INVISIBLE);
You will need to adjust the id to your own.
EDIT: You can check to see if the TextView is already invisible by:
if (tv.getVisibility() == View.INVISIBLE) {
//do something.
}
Post a Comment for "How To Set Visibility Of Textview?"