Input an object in ListAdapter in Android
<p>I am new in android.</p>

<p>I have a list that must be viewed like this:
PIC   NAME   DESC</p>

<p>I have a list of buckets that contains all 3 info above.
The problem is, I can only make one field appear in the view. In this case, the bucket.getBucketName().</p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        List&lt;Bucket&gt; buckets = BucketHandler.getBucketList();
        List&lt;String&gt; bucketList = new ArrayList&lt;String&gt;();
        for (Bucket bucket : buckets){
            bucketList.add(bucket.getBucketName());
        }
        setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.row,
                R.id.bucket_list, bucketList));
    }
</code></pre>

<p>MY .xml is as follows:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;    

    &lt;ListView
        android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="0dip"
        android:layout_weight="1"
        android:drawSelectorOnTop="false"/&gt;

    &lt;TextView
        android:id="@id/android:empty"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:text="@string/noData"/&gt;


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

<p>Row Layout:</p>

<pre><code>&lt;LinearLayout 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:orientation="horizontal" 
    android:background="@color/lightgray"&gt;

    &lt;ImageView
        android:id="@+id/icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:contentDescription="@string/none"
        android:src="@drawable/ic_launcher" /&gt;

    &lt;TextView
        android:id="@+id/bucket_list"
        android:layout_width="210dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15dp"
        android:layout_marginTop="15dp"/&gt;

    &lt;TextView
        android:id="@+id/bucket_percentage"
        android:layout_marginTop="15dp"
        android:layout_width="40dp"
        android:layout_height="wrap_content"
        android:layout_marginRight="10dp"
    /&gt;

    &lt;TextView
        android:id="@id/android:hidden_id"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:visibility="gone"
    /&gt;

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

<p>How can I render all three fields inside the item list?
Thank you.</p>
