title: Android Studio- Click button to change the buttons text multiple times
body: <p>I've been trying to change a buttons' text with each click and have had success the first time the button has clicked. Have been playing around with button.setTag and button.getTag to try to transition through the state of the button clicks.</p>
  
  <p>Exactly what I want to do...</p>
  
  <p>Button defaults to " " at start
  First click text goes to "X"
  Second click text goes to "O"
  Third click text goes to " " //did not try to enable this yet</p>
  
  <p>Here is my code so far..</p>
  
  <pre><code>button.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Button button = (Button) findViewById(R.id.button);
                  button.setTag(0);
                  button.setText("");
                  final int status = (Integer) view.getTag();
                  switch (status) {
                      case 0:
                          button.setText("X");
                          view.setTag(1); //pause
                          break;
                      case 1:
                          button.setText("O");
                          view.setTag(0); //pause
                          break;
                  }
              }
          });//if you know why android studio makes me add this get bonus points
      }
  </code></pre>