title: one Button for multiple thing
body: <p>I just want to implement one button to do multiple actions like on first click make <strong>Textview1 visible</strong> and on second click <strong>make Textview2 visible</strong> and so on.</p>
  
  <p><strong>here is my code</strong> it works but for 2 actions only i want to set more visible component in one button i hope its clear and Thanks for any help</p>
  
  <pre><code>    final TextView textView_r4 = findViewById(R.id.tv_r4);
      final EditText editText_r4 = findViewById(R.id.input_R4);
      final TextView textView_r5 = findViewById(R.id.tv_r5);
      final EditText editText_r5 = findViewById(R.id.input_R5);
  
      findViewById(R.id.Addbtn).setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              textView_r4.setVisibility(View.VISIBLE);
              editText_r4.setVisibility(View.VISIBLE);
          }
      });
  
      findViewById(R.id.Addbtn).setOnLongClickListener(new View.OnLongClickListener() {
          @Override
          public boolean onLongClick(View v) {
              textView_r5.setVisibility(View.VISIBLE);
              editText_r5.setVisibility(View.VISIBLE);
              return true;
         }
      });
  </code></pre>