title: Include TAG with click listener
body: <p>I have one Fragment with two include external layouts:</p>
  
  <pre><code>        &lt;include
          android:id="@+id/buttonSelectDate"
          layout="@layout/content_dateinstall_datebutton"
          android:layout_width="141dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_marginStart="38dp"
          android:layout_marginTop="35.9dp"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/txtInsertPhoneNumber"/&gt;
  
      &lt;include
          android:id="@+id/buttonSelectPeriod"
          layout="@layout/content_dateinstall_periodbutton"
          android:layout_width="141dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_marginEnd="38dp"
          android:layout_marginTop="35.9dp"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/txtInsertPhoneNumber"/&gt;
  </code></pre>
  
  <p>I want to set OnClick method because i gonna use that layout as button.</p>
  
  <p>when i set onclicklistener of the View the app crashes in the run time. I have been trying to Bind onClick by ButterKnife with @BindView and @OnClick and with common way, creating object and seting the onClickListener.</p>
  
  <p>Anyone know how can i do that?</p>
  
  <p>This is my buttonLayout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  &lt;data&gt;
      &lt;variable name="orderViewModel" type="com.oi.pap.viewmodels.OrderViewModel"/&gt;
  &lt;/data&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout
      android:id="@+id/linearLayout2"
      android:layout_width="141dp"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:background="@drawable/custom_border_button"&gt;
  
      &lt;TextView
          style="@style/TextAppearance.simplonRegular"
          android:id="@+id/txtSelectPeriod"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/all_period"
          android:layout_marginLeft="8dp"
          android:layout_marginTop="11dp"
          android:textSize="12sp"
          android:textColor="@color/lipstick"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintStart_toStartOf="parent"/&gt;
  
      &lt;TextView
          style="@style/TextAppearance.simplonHeadline"
          android:id="@+id/txtSelectPeriodValue"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@={orderViewModel.periodInstallValue}"
          android:layout_marginLeft="8dp"
          android:layout_marginTop="11dp"
          android:layout_marginBottom="10dp"
          android:textSize="14sp"
          android:textColor="@color/black"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/txtSelectPeriod"
          app:layout_constraintBottom_toBottomOf="parent"/&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p></p>