title: Change of state of checkbox on device rotation when using a custom layout twice
body: <p>I'm using a custom layout for date and time picker, <strong>which contains a checkbox</strong>.
  This custom layout is used twice in the parent layout.
  On changing the device orientation, the checked state of both the checkbox is automatically set to the checked state of the second checkbox.</p>
  
  <p>parent.xml</p>
  
  <pre><code>&lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="@dimen/spacing_normal"
                  android:divider="?android:dividerHorizontal"
                  android:orientation="vertical"
                  android:showDividers="beginning"&gt;
                  ...
  
                  &lt;include
                      layout="@layout/time_picker" /&gt;
  
                  &lt;include
                      layout="@layout/time_picker" /&gt;
                  ...
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>time_picker.xml</p>
  
  <pre><code>&lt;layout xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;LinearLayout
          ...
  
          &lt;CheckBox
              android:id="@+id/picker"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/use_date_time_picker"
              android:textSize="@dimen/text_size_extra_small"
              android:checked="true" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/layout&gt;
  </code></pre>
  
  <p>On changing the device orientation the checked state of the <strong>first</strong> checkbox should retain.</p>