Hi all, I want to create a listview item/row like this. I understand how to create a custom listview and adapter but getting one where each list item/row is kinda "standing on its own" I haven't been able to figure out.
How would one go about creating something like this?
Edit: On dcharms advice, I tried this:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/darker_gray" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="@android:color/white"
android:orientation="horizontal" >
<ImageView
android:id="@+id/icon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:contentDescription="@string/none"
android:src="@drawable/logo" />
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/none" />
</LinearLayout>
</RelativeLayout>
But it's nowhere even near what I want. I'm just not really sure how I would do this. Any help would be great.