title: View must have a tag error in android data binding
body: <p>I've two layouts for a screen. Activity works fine while setting a layout for Mobile device but it's causing error while setting layout for tablet device. The main issue is:</p>
  
  <blockquote>
    <p>Caused by: java.lang.RuntimeException: view must have a tag at
    com.mypackage.DataBinderMapperImpl.getDataBinder(DataBinderMapperImpl.java:941)</p>
  </blockquote>
  
  <p>Though, I don't face the problem when I install app on mobile device.</p>
  
  <p><strong>This way I'm setting layout on activity:</strong></p>
  
  <pre><code>val resetPasswordActivityBinding = DataBindingUtil.setContentView&lt;ResetPasswordActivityBinding&gt;(this,
                  R.layout.reset_password_activity)
  resetPasswordActivityBinding.resetPasswordViewModel = resetPasswordViewModel
  </code></pre>
  
  <p><strong>Here is my XML layout for tablet screen:</strong></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="resetPasswordViewModel"
              type="com.bhi.salesarchitect.user.password.reset.ResetPasswordViewModel" /&gt;
  
      &lt;/data&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include
              android:id="@+id/toolbar"
              layout="@layout/app_toolbar_layout"
              app:appTheme="@{resetPasswordViewModel.appTheme}"
              app:appToolbar="@{resetPasswordViewModel.appToolbar}" /&gt;
  
          &lt;FrameLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;ImageView
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@drawable/bg_splash"
                  android:contentDescription="@null"
                  android:scaleType="centerCrop" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="horizontal"&gt;
  
                  &lt;ImageView
                      android:id="@+id/imv_builder_logo_change_pswd"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="@dimen/dp_135"
                      android:layout_marginBottom="@dimen/space_xxlarge"
                      android:layout_weight=".5"
                      android:contentDescription="@null"
                      android:src="@drawable/ic_logo" /&gt;
  
                  &lt;FrameLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_marginEnd="@dimen/dp_80"
                      android:layout_weight=".4"&gt;
  
                      &lt;ImageView
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:layout_marginStart="@dimen/space_normal"
                          android:layout_marginEnd="@dimen/space_normal"
                          android:contentDescription="@null"
                          android:scaleType="fitXY"
                          android:src="@drawable/bg_white_shadow" /&gt;
  
                      &lt;LinearLayout
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:orientation="vertical"
                          android:paddingStart="@dimen/space_xxxlarge"
                          android:paddingEnd="@dimen/space_xxxlarge"&gt;
  
                          &lt;TextView
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_marginTop="@dimen/dp_55"
                              android:layout_marginBottom="@dimen/space_small"
                              android:gravity="center"
                              android:text="@string/a_one_time_password_reset_code_has_been_sent_to_your_email"
                              android:textColor="@color/blue_dark_main"
                              android:textSize="@dimen/text_size_normal" /&gt;
  
                          &lt;EditText
                              android:id="@+id/et_otp"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_marginTop="@dimen/space_normal"
                              android:background="@drawable/shape_rounded_white"
                              android:drawablePadding="@dimen/space_small"
                              android:hint="@string/password_reset_code"
                              android:inputType="textPersonName"
                              android:paddingStart="@dimen/space_small"
                              android:paddingTop="@dimen/space_xsmall"
                              android:paddingEnd="@dimen/space_xxsmall"
                              android:paddingBottom="@dimen/space_xsmall"
                              android:textColor="@android:color/black"
                              android:textSize="@dimen/sp_15" /&gt;
  
                          &lt;EditText
                              android:id="@+id/et_password"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_marginTop="@dimen/space_small"
                              android:background="@drawable/shape_rounded_white"
                              android:drawableStart="@drawable/ic_password"
                              android:drawablePadding="@dimen/space_small"
                              android:hint="@string/new_password"
                              android:inputType="textPassword"
                              android:maxLength="@integer/max_password_length"
                              android:paddingStart="@dimen/space_small"
                              android:paddingTop="@dimen/space_xsmall"
                              android:paddingEnd="@dimen/space_xxsmall"
                              android:paddingBottom="@dimen/space_xsmall"
                              android:textColor="@android:color/black"
                              android:textSize="@dimen/sp_15" /&gt;
  
                          &lt;EditText
                              android:id="@+id/et_confirm_password"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_marginTop="@dimen/space_small"
                              android:background="@drawable/shape_rounded_white"
                              android:drawableStart="@drawable/ic_password"
                              android:drawablePadding="@dimen/space_small"
                              android:hint="@string/confirm_new_password"
                              android:imeOptions="actionDone"
                              android:inputType="textPassword"
                              android:maxLength="@integer/max_password_length"
                              android:paddingStart="@dimen/space_small"
                              android:paddingTop="@dimen/space_xsmall"
                              android:paddingEnd="@dimen/space_xxsmall"
                              android:paddingBottom="@dimen/space_xsmall"
                              android:textColor="@android:color/black"
                              android:textSize="@dimen/sp_15" /&gt;
  
                          &lt;Button
                              android:id="@+id/bt_submit"
                              style="@style/ButtonNormal"
                              android:layout_marginTop="@dimen/space_normal"
                              android:backgroundTint="@color/blue_dark_main"
                              android:onClick="@{()-&gt; resetPasswordViewModel.onSubmitClick()}"
                              android:text="@string/submit"
                              android:textColor="@android:color/white" /&gt;
  
                      &lt;/LinearLayout&gt;
  
                  &lt;/FrameLayout&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/layout&gt;
  </code></pre>