1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:foreground="?android:attr/selectableItemBackground"
- android:background="@drawable/recycler_view_selector"
- android:minHeight="?android:attr/listPreferredItemHeightSmall"
- android:clickable="true"
- android:focusable="true">
-
- <ImageView
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:src="@drawable/ic_add_black_24dp"
- android:id="@+id/imageView"
- android:paddingBottom="2.5dp"
- android:paddingRight="5dp"
- android:paddingTop="2.5dp"/>
-
- <TextView
- tools:text="Route name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/textView"
- android:gravity="center_vertical"
- android:clickable="false"
- android:focusable="false"
- android:layout_alignParentTop="true"
- android:layout_toRightOf="@+id/imageView"
- android:layout_alignBottom="@+id/imageView"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"/>
-
- <TextView
- tools:text="10:00"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textView2"
- android:layout_below="@+id/textView"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:layout_toRightOf="@+id/imageView"
- android:layout_toEndOf="@+id/imageView"/>
-
- </RelativeLayout>
|