title: How to check TextView Visibility using IF
body: <p>I have an onCheckChangedListener to show a textView depending on which radio button is selected.  I have 1 question and 1 problem that I was wondering if anyone could help me with.</p>
  
  <p>Question: Can you set the radio groups default check value to NO radio button so that none are checked to start with?</p>
  
  <p>Problem:  How can I use an IF statement to determine whether a text view is already "visible" and If it is then set it to "gone", I will include my current code.</p>
  
  <p>code:</p>
  
  <pre><code>    @Override
  public void onCheckedChanged(RadioGroup arg0, int arg1) {
      switch(arg1){
      case R.id.rfolk1:
          Folk1.start();
          TvFolk1.setVisibility(View.VISIBLE);
  
          TvFolk2.setVisibility(View.GONE);
  
          Play.setVisibility(View.VISIBLE);
          Pause.setVisibility(View.VISIBLE);
          Stop.setVisibility(View.VISIBLE);
  
          Play2.setVisibility(View.GONE);
          Pause2.setVisibility(View.GONE);
          Stop2.setVisibility(View.GONE);
          break;
      case R.id.rfolk2:
          Folk2.start();
          TvFolk2.setVisibility(View.VISIBLE);
          TvFolk1.setVisibility(View.GONE);
  
          Play2.setVisibility(View.VISIBLE);
          Pause2.setVisibility(View.VISIBLE);
          Stop2.setVisibility(View.VISIBLE);
  
          Play.setVisibility(View.GONE);
          Pause.setVisibility(View.GONE);
          Stop.setVisibility(View.GONE);
          break;
      }
  </code></pre>