You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

route_schedules_recycler_view_item.xml 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:orientation="horizontal"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:foreground="?android:attr/selectableItemBackground"
  8. android:background="@drawable/recycler_view_selector"
  9. android:minHeight="?android:attr/listPreferredItemHeightSmall"
  10. android:clickable="true"
  11. android:focusable="true">
  12. <ImageView
  13. android:layout_width="50dp"
  14. android:layout_height="50dp"
  15. android:src="@drawable/ic_add_black_24dp"
  16. android:id="@+id/imageView"
  17. android:paddingBottom="2.5dp"
  18. android:paddingRight="5dp"
  19. android:paddingTop="2.5dp"/>
  20. <TextView
  21. tools:text="Route name"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:id="@+id/textView"
  25. android:gravity="center_vertical"
  26. android:clickable="false"
  27. android:focusable="false"
  28. android:layout_alignParentTop="true"
  29. android:layout_toRightOf="@+id/imageView"
  30. android:layout_alignBottom="@+id/imageView"
  31. android:layout_alignParentRight="true"
  32. android:layout_alignParentEnd="true"/>
  33. <TextView
  34. tools:text="10:00"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:id="@+id/textView2"
  38. android:layout_below="@+id/textView"
  39. android:layout_alignParentRight="true"
  40. android:layout_alignParentEnd="true"
  41. android:layout_toRightOf="@+id/imageView"
  42. android:layout_toEndOf="@+id/imageView"/>
  43. </RelativeLayout>