2017-03-31 18:17:53 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout 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="wrap_content"
|
|
|
|
android:background="?android:attr/activatedBackgroundIndicator"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:minHeight="60dp">
|
2017-03-31 18:17:53 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/item_image"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_centerVertical="true"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:contentDescription="@string/candidate_item_device_image" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_width="wrap_content"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_alignWithParentIfMissing="true"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:layout_centerVertical="true"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:layout_toEndOf="@+id/item_image"
|
|
|
|
android:layout_toStartOf="@+id/drag_handle"
|
|
|
|
android:orientation="vertical"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:paddingTop="8dp">
|
2017-03-31 18:17:53 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/item_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:maxLines="1"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="Item Name"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
2017-03-31 18:17:53 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/item_details"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:text="Item Description"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
2017-03-31 18:17:53 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drag_handle"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_centerVertical="true"
|
2017-03-31 18:17:53 +02:00
|
|
|
android:contentDescription="drag handle"
|
2017-04-01 17:06:38 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2020-09-01 21:27:07 +02:00
|
|
|
app:srcCompat="@drawable/ic_drag_handle" />
|
2017-03-31 18:17:53 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|