Android Studio – Android Studio If-statement make TextView visible if invisible and invisible if visible
I am trying to make a textView invisible when pressing a button. But, if the textView is already invisible I want it to become visible. Currently I am trying sonething like this: public void ShowAndHide(View view){ if(textView == View.VISIBLE){ textView.setVisibility(View.INVISIBLE);…