[click here to see image When include layout is visible](http://i.stack.imgur.com/Rbcbj.png) 

[click here to see image When include layout is invisible](http://i.stack.imgur.com/KWwNA.png)

Images are uploaded
Here is the main.xml

```
<TableRow
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <TextView
        android:id="@+id/tv_prints_type"
        android:text="@string/prints_type"
        android:layout_gravity="center_vertical"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <RadioGroup
        android:id="@+id/radio_prints_type"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <RadioButton
            android:id="@+id/radio_prints_type_real"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/real"
            android:onClick="showSpoofOptions"/>
        <RadioButton
            android:id="@+id/radio_prints_type_spoof"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:text="@string/spoof"
            android:onClick="showSpoofOptions"/>
        </RadioGroup>
    </TableRow>
    <TableRow
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
        <LinearLayout
            android:id="@+id/linearLayoutAsp"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical">
            <include 
                layout="@layout/asp"
                android:id="@+id/asp_layout"
                android:visibility="gone" />
         </LinearLayout> 
         </TableRow>
         <!--  User Name   -->
         <TableRow
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:background="@drawable/table_row_border">
             <TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="@string/user"
                 android:textAppearance="?android:attr/textAppearanceMedium"
                 android:textColor="#003366"
                 android:layout_span="2"/>
         </TableRow>

```

and my activity class

```
LinearLayout aspLayout = (LinearLayout)findViewById(R.id.linearLayoutAsp);
aspLayout.removeAllViews();
View aspView = getLayoutInflater().inflate(R.layout.asp, aspLayout, true);

```

When include Layout is in invisible "Alignment has properly set
When include layout is visible over radio button click Alignment has changed and remaining view components has moved to right corner of the border