title: setError() doesnt work on EditText from merged layout using <include layout="@layout/address_from_merge" />
body: <h2>I m creating signup activity, &amp; in its layout i m "merging address_from_merge"-layout, but at run time setError() doesnt get work on any EditText from merged layout,i.e. doesn't get validated rather it works on other EditText from current layout.</h2>
  
  <blockquote>
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="@drawable/back"
          android:orientation="vertical" &gt;
  
          &lt;ScrollView
              android:id="@+id/scrollView1"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:isScrollContainer="true"
              android:scrollbarStyle="outsideOverlay"
              android:scrollbars="vertical" &gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1"
                  android:orientation="vertical" &gt;
  
                  &lt;!--
                       Notice that widget sizes are expressed in dip, or device-independent 
                    pixels, while text sizes are expressed in sp, or scale-independent pixels, 
                    to factor in user-chosen font sizes.
                  --&gt;
  
                  &lt;FrameLayout
                      android:id="@+id/image_container"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:background="@drawable/image_container" &gt;
  
                      &lt;TableLayout
                          android:id="@+id/tableLayout1"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:stretchColumns="1" &gt;
  
                          &lt;LinearLayout
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center_horizontal"
                              android:gravity="center_vertical" &gt;
  
                              &lt;ImageView
                                  android:id="@+id/imageView1"
                                  android:layout_width="30dp"
                                  android:layout_height="30dp"
                                  android:background="@drawable/login" /&gt;
  
                              &lt;TextView
                                  android:id="@+id/totPrdItems"
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:text="Sign Up..."
                                  android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                          &lt;/LinearLayout&gt;
  
                          &lt;EditText
                              android:id="@+id/usernm"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:ems="10"
                              android:hint="User Name"
                              android:inputType="textPersonName" &gt;
                              &lt;requestFocus /&gt;
                          &lt;/EditText&gt;
  
                          &lt;EditText
                              android:id="@+id/emailId"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:hint="EmailId: abc123@xyz.com"
                              android:inputType="textEmailAddress" &gt;
                          &lt;/EditText&gt;
  
                          &lt;EditText
                              android:id="@+id/pwd"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:hint="Password"
                              android:inputType="textPassword" &gt;
                          &lt;/EditText&gt;
  
                          &lt;EditText
                              android:id="@+id/repwd"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:hint="Confirm Password"
                              android:inputType="textPassword" &gt;
                          &lt;/EditText&gt;
  
                          &lt;EditText
                              android:id="@+id/phone"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:ems="10"
                              android:hint="Mob.No."
                              android:inputType="phone" /&gt;
  
                          &lt;include layout="@layout/address_from_merge" /&gt;
  
                          &lt;TextView
                              android:id="@+id/info_text"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center"
                              android:layout_margin="5dip"
                              android:text="Tapping Singup You agree to Terms of Service and Privacy Policy"
                              android:textColor="@android:color/background_light"
                              android:textSize="10sp" /&gt;
  
                          &lt;Button
                              android:id="@+id/signUp"
                              android:onClick="action_signUp"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:text="Sign Up" &gt;
                          &lt;/Button&gt;
                      &lt;/TableLayout&gt;
                  &lt;/FrameLayout&gt;
                                      &lt;TextView
                              android:id="@+id/status_text"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_gravity="center_horizontal"
                              android:layout_margin="5dip"
                              android:shadowColor="@android:color/background_light"
                              android:shadowDx="1.0"
                              android:shadowDy="1.0"
                              android:shadowRadius="1"
                              android:text="Already have an account?"
                              android:textColor="@android:color/background_light"
                              android:textSize="18sp" /&gt;
  
                          &lt;Button
                              android:id="@+id/signIn_btn"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:onClick="goto_signIn"
                              android:text="Sign In &gt;&gt;"
                              android:textSize="24sp" /&gt;
  
                          &lt;Button
                              android:id="@+id/btn_forgotPwd"
                              android:layout_width="fill_parent"
                              android:layout_height="wrap_content"
                              android:onClick="goto_forgotPwd"
                              android:text="Forgot Password"
                              android:textSize="24sp" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
  
      &lt;/LinearLayout&gt;
  
  and layout of "address_from_merge"(&lt;include layout="@layout/address_from_merge" /&gt;)
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:stretchColumns="1" android:shrinkColumns="0"&gt;
          &lt;View android:layout_width="fill_parent" android:layout_height="4sp" /&gt;
  
              &lt;EditText
                  android:id="@+id/add_add"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_span="2"
                  android:ems="10"
                  android:singleLine="false"
                  android:inputType="textPostalAddress" 
                  android:hint="Address"&gt;
              &lt;/EditText&gt;
          &lt;TextView
                  android:id="@+id/textView2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Country :"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
              &lt;Spinner
                  android:id="@+id/add_country"
                  android:text="--Select Country--"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:entries="@array/Country"
                  android:hint="Country" /&gt;
              &lt;TextView
                  android:id="@+id/textView9"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="State :"
                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
              &lt;Spinner
                  android:id="@+id/add_state"
                  android:text="--Select State--"
                  android:entries="@array/State"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:hint="State" /&gt;
              &lt;EditText
                  android:hint="City"
                  android:id="@+id/add_city"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:ems="10" /&gt;
              &lt;EditText
                  android:hint="Zip Code"
                  android:id="@+id/add_zipCode"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:ems="10"
                  android:inputType="number" /&gt;
  &lt;/merge&gt;
  </code></pre>
  </blockquote>