title: setOnClickListener in Android for Two TextViews
body: <p>I have a Simple Date Picker App in Android and it's working fine when I click on First TextView.
  How Can I activate the same Calendar with a second TextView. One TextView shows the Long Date and other shows the Short Date</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
      private TextView mDisplayLongDate;
      TextView mDisplayShortDate;
      CheckBox checkBoxVisibility;
      private DatePickerDialog.OnDateSetListener mDateSetListener;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          mDisplayLongDate = findViewById(R.id.tvLDate);
          mDisplayShortDate = findViewById(R.id.tvSDate);
          //View checkBox = findViewById(R.id.checkBox);
          checkBoxVisibility = findViewById(R.id.checkBox_visibility);
                  //boolean isChecked = checkBoxVisibility.isClickable();
          boolean isChecked = checkBoxVisibility.isChecked();
          updateTextVisibility(isChecked);
          checkBoxVisibility.setOnCheckedChangeListener((buttonView, isChecked1) -&gt; {
              //Step 05 - Updating UI according to the currently changed state
              updateTextVisibility(isChecked1);
          });
  
          mDisplayLongDate.setOnClickListener(view -&gt; {
              Calendar cal = Calendar.getInstance();
  </code></pre>
  <p>With a CheckBox, the TextView Shows Long Date and Short Date.
  I cannot click on the short date to edit the Calendar. How to activate the Calendar in both situation.</p>
  <pre><code>String dateLong = monthStr + &quot;/&quot; + day + &quot;/&quot; + year;
              String dateShort = monthStr + &quot;/&quot; + day;
  
              mDisplayLongDate.setText(dateLong);
              mDisplayShortDate.setText(dateShort);
          };
      }
      private void updateTextVisibility(boolean isChecked) // When checking the trigger (checkbox)
      {
          if (isChecked)
          {
              mDisplayShortDate.setVisibility(View.VISIBLE);
              mDisplayLongDate.setVisibility(View.GONE);
          }
          else
          {
              mDisplayShortDate.setVisibility(View.GONE);
              mDisplayLongDate.setVisibility(View.VISIBLE);
          }
  </code></pre>