Add a title to listView
<p>Friends I am using a list view to add particular records. I need to add header for particular column in the list view. Please help me for the same. PLease find xml file code and screenshot with this post.<img src="http://i.stack.imgur.com/z0swi.png" alt="enter image description here"></p>

<p>XML FILE</p>

<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="fill_parent"
    android:layout_height="fill_parent" &gt;

    &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_toLeftOf="@+id/imageView1"
        android:orientation="horizontal"
        android:paddingLeft="10dp" &gt;

        &lt;TextView
            android:id="@+id/title"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Title"
            android:textColor="#ffffffff"
            android:textSize="15sp"
            android:textStyle="bold" /&gt;

        &lt;TextView
            android:id="@+id/detail"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Detail"
            android:textColor="#ffffffff"
            android:textSize="15sp"
            android:textStyle="bold" /&gt;

        &lt;TextView
            android:id="@+id/country"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="India"
            android:textColor="#ffffffff"
            android:textSize="15sp"
            android:textStyle="bold" /&gt;
    &lt;/LinearLayout&gt;

    &lt;ImageView
        android:id="@+id/imageView1"
        android:layout_width="60dp"
        android:layout_height="60dp"
        android:layout_alignParentRight="true"
        android:background="@drawable/error"
        android:scaleType="centerCrop" /&gt;

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