title: How to set custom ListAdapter to list view in appwidget?
body: <p>I have a listView. I needed a custom view for each list item, so I've created a custom ListAdapter which gives the views, layout for which is given below. But how do I set this listAdapter to the ListView in the widget using RemoteViews ? </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="fill_parent"
      android:layout_height="fill_parent"
      android:background="@android:color/background_light"
      android:layout_margin="1sp"
      android:padding="10sp"
      &gt;
  
      &lt;TextView
          android:id="@+id/widgetInfo1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/listItemDummy"
          android:textColor="@android:color/black"
          /&gt;
  
      &lt;TextView
          android:id="@+id/widgetInfo2"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/listItemDummy"
          android:textColor="@android:color/black"
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>