Want to add item in a list in android at runtime
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" &gt;
&lt;EditText 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:id="@+id/speed"
    android:inputType="number"&gt;&lt;/EditText&gt;"
&lt;TextView 
    android:id="@+id/TextViewSpeed"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text ="Speed"
    android:layout_below="@+id/speed"
    /&gt;
&lt;Button 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom"
    android:text="AddValue"
    android:id="@+id/AddValue"
    &gt;
&lt;/Button&gt;
&lt;ListView 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/ListView"
    android:layout_below="@+id/AddValue"
    &gt;
&lt;/ListView&gt;

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

<p>This is my layout code. I wanted to add a text data from EditText to the ListView which is on same page. How to write a code to add text to the list when I click on the AddValue Button.
Thanks in advance.</p>
