I'm trying to create a custom ListView. In another project I created an xml row_client and in the ListView I put tools:listitem="@layout/row_cliente"
, however it does not appear in my custom list, but the default list. Does anyone know why?
Custom ListView:
ListViewCode:
<ListViewandroid:id="@+id/listViewCliente"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:listitem="@layout/row_cliente">
Customer row code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:text="TextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/textView3"
android:paddingLeft="100dp"
android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Large" />
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_menu_send"
android:id="@+id/imageView2"
android:layout_weight="1" />