Hi All,
I want to have a list view which in each row, shows a left aligned image and Text description for that image.
Apart from this list, I want to have a header on top of this list which is an ImageView in first row (line), and a small a desription(textview) in the second row.
So basically my requirement is to show and image and text as part of the header and then to show a list of items.
For showing the lsit view, I could able to populate the list view with image and text, but not sure about how to build the header views.
Please see my layout xml below and help me in building the layout to achieve my requirement. I am newbie in android, please correct me if i am wrong.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/category_icon"
android:layout_width="50px"
android:layout_height="50px"
android:gravity="left"
/>
<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textStyle="bold"
android:height="25sp"
/>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
/>
</LinearLayout>
</LinearLayout>


