sliding up a layout from bottom over a relative layout using animation
<p>In my application I used RelativeLayout as the root element for one activity UI.In the xml file,I have 2 edittext feilds and one button and a child layout(suppose LinearLayout2).I want to slide up the LinearLayout2 from the bottom when button is clicked.It's works fine,but the problem is LinearLayout2 is sliding up when I click on the edittext fields.But I didn't write any code for edittexts.can someone help me please.My code is</p>

<p><strong>Actvity:</strong></p>

<pre><code>import com.rmn.widget.WheelView;
import com.rmn.widget.adapters.NumericWheelAdapter;
import com.rmn.widget.adapters.WheelViewAdapter;
import com.rmn.R;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.view.animation.TranslateAnimation;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

public class RelativeLayoutExampleActivity extends Activity {
    final Context context=this;
     Button b;
    /** Called when the activity is first created. */
    private LinearLayout ll;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ll=(LinearLayout) findViewById(R.id.ll_wheelViewLayout5);

        WheelView noOfAdults = (WheelView) findViewById(R.id.no_of_adults2);
        WheelView noOfChilds = (WheelView) findViewById(R.id.no_of_childs2);
        noOfAdults.setViewAdapter(new NumericWheelAdapter(this, 1, 10));
        noOfChilds.setViewAdapter(new NumericWheelAdapter(this, 0, 10));
        b=(Button) findViewById(R.id.btn_1);


        b.setOnClickListener(new OnClickListener() {

            public void onClick(View arg0) {


        ll.setVisibility(View.VISIBLE);  
        TranslateAnimation slide = new TranslateAnimation(0, 0, 250,0 );   
         slide.setDuration(100);   
                slide.setFillAfter(true);   
            ll.startAnimation(slide); 
            }
        });
    }
}
</code></pre>

<p><strong>xml file:</strong>
       
    </p>

<pre><code>    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:text="Selection"
        android:textAppearance="?android:attr/textAppearanceLarge" /&gt;

    &lt;ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"

        android:layout_below="@+id/textView1"&gt;

        &lt;LinearLayout
            android:layout_width="match_parent"
            android:layout_height="300dp" 
            android:orientation="vertical"&gt;

            &lt;TextView
                android:id="@+id/textView2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Medium Text"
                android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
         &lt;EditText android:layout_height="wrap_content"
             android:layout_width="fill_parent"
             /&gt;
         &lt;TextView android:layout_height="wrap_content"
             android:layout_width="wrap_content"
             android:text="Length of stay"/&gt;
         &lt;TextView android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="arrival"/&gt;
         &lt;EditText android:layout_height="wrap_content"
             android:layout_width="fill_parent"/&gt;

          &lt;TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="departure"/&gt;
          &lt;EditText android:layout_height="wrap_content"
              android:layout_width="fill_parent"/&gt;
          &lt;TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="no of persons"/&gt;
          &lt;Button android:layout_height="wrap_content"
              android:layout_width="wrap_content"
              android:text="adult"
              android:id="@+id/btn_1"/&gt; 

        &lt;/LinearLayout&gt;
    &lt;/ScrollView&gt;

  &lt;LinearLayout android:id="@+id/ll_wheelViewLayout5"
    android:layout_width="wrap_content"
    android:layout_height="200dp"
    android:background="#555" 
  android:layout_alignBottom="@id/scrollView1"
    android:orientation="vertical"
    android:visibility="gone"&gt;
     &lt;RelativeLayout 
         android:layout_height="40dp" 
         android:layout_width="wrap_content"
        android:id="@+id/cancelDone"
        android:background="#696969"
         android:paddingLeft="12dp"
        android:paddingRight="12dp"&gt;
         &lt;Button
        android:layout_width="50dp"
        android:layout_height="30dp"
        android:layout_alignParentLeft="true"
        android:id="@+id/btn_Adult3"
        android:textColor="#fff"
        android:background="@drawable/cancel_btn"
        android:text="Cancel" 
        android:textStyle="bold"
        android:gravity="center" 
        android:layout_margin="5dp"/&gt;
          &lt;Button
        android:layout_width="50dp"
        android:layout_height="30dp"
        android:layout_alignParentRight="true"
        android:id="@+id/btn_child3"
        android:textColor="#fff"
        android:background="@drawable/done_btn"
        android:text="Done" 
        android:textStyle="bold"
        android:gravity="center"
        android:layout_margin="5dp"/&gt;


     &lt;/RelativeLayout&gt;

    &lt;LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:paddingLeft="12dp"
        android:paddingRight="12dp"
        android:paddingTop="5dp"&gt;


        &lt;com.rmn.widget.WheelView
            android:id="@+id/no_of_adults2"
            android:layout_width="140dp"
            android:layout_height="100dp" /&gt;

        &lt;com.rmn.widget.WheelView
            android:id="@+id/no_of_childs2"
            android:layout_width="140dp"
            android:layout_height="100dp" /&gt;
    &lt;/LinearLayout&gt;
&lt;/LinearLayout&gt; 

&lt;/RelativeLayout&gt;
</code></pre>
