title: How to add/remove item from listview in android when click button in item listview
body: <p>I'm a newbie android.I have some problem about my mini app.
  You can see figure below:
  <a href="http://i481.photobucket.com/albums/rr175/viethungit/android.png" rel="noreferrer">http://i481.photobucket.com/albums/rr175/viethungit/android.png</a></p>
  
  <p>Firstly,row 1(layout 1) appear listview when click button add in row 1, row 2(layout 2) appear, and continue...click button add in row 1 ,layout 2 appear in listview....
  I try search from Mr.Google but i don't find...
  Anybody could help me!</p>
  
  <p>This is layout, and activity I don't know how to implement</p>
  
  <pre><code>add_item.xml
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#EEEEEE"
      android:orientation="horizontal"
      android:padding="5dip"&gt;
  
      &lt;!-- Image Item--&gt;
      &lt;ImageButton
              android:id="@+id/imgItem"
              android:layout_width="40dip"
              android:layout_height="40dip"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:layout_marginLeft="2dp"
              android:contentDescription="@string/imgView"  /&gt;
  
      &lt;!-- Name item  --&gt;
  
      &lt;EditText
          android:id="@+id/edtItem"
          android:layout_width="100dp"
          android:layout_height="40dp"
          android:layout_marginLeft="5dp"
          android:layout_toRightOf="@+id/imgItem"
          android:background="@drawable/bg"
          android:hint="@string/txtTitle"
          android:textSize="20dip" /&gt;   
  
      &lt;!-- Button add --&gt;
      &lt;Button        
          android:id="@+id/btnAdd"
          android:background="@drawable/add"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"/&gt;
      &lt;!-- item --&gt;
      &lt;TextView
          android:id="@+id/txtSubtitle"
          android:layout_width="100dp"
          android:layout_height="40dp"
          android:layout_toLeftOf="@+id/btnAdd"
          android:gravity="right|center_vertical"
          android:layout_centerVertical="true"
          android:textSize="20dip"
          android:text="@string/txtSubtitle" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  
  plus_item.xml
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#EEEEEE"
      android:orientation="horizontal"
      android:padding="5dip" &gt;
  
      &lt;!-- Image Item --&gt;
      &lt;ImageView
          android:id="@+id/imgItem"
          android:src="@drawable/chomsao"
          android:layout_width="40dip"
          android:layout_height="40dip"
          android:layout_alignParentLeft="true"
          android:layout_centerVertical="true"
          android:layout_marginLeft="2dp"
          android:contentDescription="@string/imgView" /&gt;
  
      &lt;!-- Name Item --&gt;
      &lt;TextView
          android:id="@+id/edtItem"
          android:layout_width="wrap_content"
          android:layout_height="40dp"
          android:layout_marginLeft="5dp"
          android:layout_toRightOf="@+id/imgItem"
          android:layout_centerVertical="true"
          android:gravity="center_vertical"
          android:text="@string/txtTitle"
          android:textSize="20dip" /&gt;
  
      &lt;!-- Quantity Item --&gt;
      &lt;TextView 
          android:id="@+id/txtQtyItem"
          android:layout_width="wrap_content"
          android:layout_height="40dp"
          android:layout_toRightOf="@id/edtItem"
          android:layout_marginLeft="20dp"
          android:gravity="center_vertical"
          android:textSize="20dip"
          android:text="@string/QuantityItem"/&gt;
  
      &lt;!-- Button plus --&gt;
      &lt;Button
          android:id="@+id/btnPlus"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:background="@drawable/plus" /&gt;
  
      &lt;!-- Button minus --&gt;
      &lt;Button
          android:id="@+id/btnMinus"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_centerVertical="true"
          android:layout_alignBaseline="@id/btnPlus"
          android:layout_toLeftOf="@+id/btnPlus"
          android:background="@drawable/minus" /&gt;
  
      &lt;!-- Price Item --&gt;
      &lt;TextView
          android:id="@+id/txtSubtitle"
          android:layout_width="100dp"
          android:layout_height="40dp"
          android:layout_centerVertical="true"
          android:layout_toLeftOf="@+id/btnMinus"
          android:gravity="right|center_vertical"
          android:text="@string/txtSubtitle"
          android:textSize="20dip" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  
  
  activity_main.xml
          &lt;RelativeLayout 
          android:id="@+id/relative1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/relative"
          android:layout_above="@id/relative2"
          android:background="#EEEEEE"
          android:layout_marginLeft="1.5dp"
          android:layout_marginRight="1.5dp"
          android:layout_marginTop="1.5dp"&gt;
  
          &lt;ListView
              android:id="@+id/listSale"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
          &lt;/ListView&gt;        
      &lt;/RelativeLayout&gt;
  </code></pre>