<?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="match_parent"
>
<ImageView
android:id="@+id/list_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_launcher"
/>
<TextView
android:id="@+id/list_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/list_img"
android:layout_alignTop="@id/list_img"
android:layout_alignBottom="@id/list_img"
android:background="#6600ff00"
android:paddingLeft="20dp"
android:gravity="center_vertical"
android:textColor="#ff000000"
android:text="hello" />
</RelativeLayout>