clicking on plus button produces a new edittext in the same view
<p>I am developing an android contacts based application.I have designed the views.I am in problem.When i click on plus button a edittext should appear in the same view
Can anyone help me</p>

<p>My java code is </p>

<pre><code>package com.xib;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class FirstScreen extends Activity {
    private Button Back;
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.first_screen);

        Back = (Button)findViewById(R.id.back_btn1);
        Back.setOnClickListener(new OnClickListener(){

            @Override
            public void onClick(View v)
            {

                Intent intent = new Intent(FirstScreen.this,SecondScreen.class);
                startActivity(intent);


            }


    });
    }
}
</code></pre>

<p>And my Xml is 

</p>

<p></p>

<p> </p>

<p></p>

<p></p>

<p> </p>

<p>   </p>

<p></p>

<p></p>

<p>
</p>

<p> 
</p>

<p></p>

<p></p>

<pre><code>&lt;EditText
     android:id="@+id/edit2"
     android:hint=""
     android:singleLine="true"
     android:layout_marginLeft="50px"
     android:layout_width="192px"
     android:layout_height="wrap_content"/&gt;
</code></pre>

<p></p>

<p></p>

<p></p>

<p>     </p>

<p>      </p>

<p>  </p>

<p></p>

<p></p>

<p>     </p>

<p>      </p>

<p>  </p>

<p></p>

<p>
      </p>

<p>
</p>

<p>Thanks in advance
Tushar</p>
