title: setadapter for android not working. empty adapter or listview?
body: <p>im just trying to create a listview using a simple adapter. the setadapter is not working. this is my code. my setcontentview is before this block of code and this is in oncreate.</p>
  
  <pre><code>        ArrayList&lt;HashMap&lt;String,String&gt;&gt; arraylist = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;();
  HashMap&lt;String,String&gt; map = new HashMap&lt;String,String&gt;();
  map.put("CType", "Alarm");
  map.put("RType", "Once");
  map.put("hour", "1");
  map.put("minute", "1");
  map.put("second", "30");
  arraylist.add(map);
  String[] stringarray= new String[] {"CType", "RType", "hour","minute","second"};
  int[] intarray = new int[] {R.id.clocktextviewalarmtimer,R.id.clocktextviewrepeatonce,
          R.id.clocktextviewhours,R.id.clocktextviewminutes,R.id.clocktextviewseconds};
  ListView clocklistview = (ListView)findViewById(R.id.clocklistview);
  SimpleAdapter adapter = new SimpleAdapter(this,arraylist,R.layout.list_clock,stringarray,intarray);
  
  clocklistview.setAdapter(adapter);
  </code></pre>
  
  <p>this is the xml that contains my listview</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
          android:layout_width="match_parent"
      android:layout_height="match_parent"
      &gt;
      &lt;ListView 
      android:id="@+id/clocklistview"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  &lt;/ListView&gt;&lt;/LinearLayout&gt;
  </code></pre>
  
  <p>this is for my list_clock.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  
  
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:weightSum="3"&gt;
      &lt;TextView
          android:id="@+id/clocktextviewalarmtimer"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text=""
          android:layout_weight="1"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;TextView
          android:id="@+id/clocktextviewrepeatonce"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text=""
          android:layout_weight="1"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;TextView
          android:id="@+id/clocktextviewhours"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text=""
          android:layout_weight="0.3"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
      &lt;TextView
          android:id="@+id/clocktextviewminutes"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text=""
          android:layout_weight="0.3"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
      &lt;TextView
          android:id="@+id/clocktextviewseconds"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text=""
          android:layout_weight="0.3"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>