title: Android ListView dynamically adding data
body: <p>I have a listView that I want to dynamically add data to.
  here's the XML I want to add the data to.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
  
    &lt;TextView android:id="@+id/rowTextView" 
      android:layout_width="wrap_content" 
      android:layout_height="70dp"
      android:padding="12dp"
      android:textSize="16sp" &gt;
    &lt;/TextView&gt;
  
    &lt;TextView android:id="@+id/alarm_name_text" 
     android:layout_height="wrap_content" 
     android:text="" 
     android:layout_below="@+id/rowTextView" 
     android:layout_width="fill_parent"&gt;
     &lt;/TextView&gt;
  
    &lt;CheckBox android:id="@+id/CheckBox01" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:padding="10dp"
      android:layout_alignParentRight="true" android:layout_marginRight="6sp"
      android:focusable="false"&gt;
    &lt;/CheckBox&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I want to add data to the 2nd TextView with the id alarm_name_text after a user has entered some data in an editText dialogView. I've been told to make a function that adds the data the my ArrayList/adapter but I'm not sure when to call it or how it's being used.. I needs help plz :(. Here's the function.</p>
  
  <pre><code>public void addItems(View v)
          {
              rowSavedText.setText(getString());
              planetList.add(new Planet("This one"));
              listAdapter.notifyDataSetChanged();
          }
  </code></pre>