Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_height="match_parent"
  4.    android:layout_width="match_parent"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto">
  6. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7.    xmlns:app="http://schemas.android.com/apk/res-auto"
  8.    xmlns:tools="http://schemas.android.com/tools"
  9.    android:layout_width="match_parent"
  10.    android:layout_height="match_parent"
  11.    android:paddingLeft="0dp"
  12.    android:paddingRight="0dp">
  13.  
  14.     <include
  15.        android:id="@+id/header"
  16.        android:layout_width="fill_parent"
  17.        android:layout_height="wrap_content"
  18.        layout="@layout/fragment_expiry_dates_list_header" />
  19.  
  20.     <androidx.recyclerview.widget.RecyclerView
  21.        android:id="@+id/products_list"
  22.        android:name="com.example.expirydate.ui.main.ExpiryDatesFragment"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="match_parent"
  25.        android:layout_below="@+id/header"
  26.        android:layout_above="@id/buttonNewOrOpened"
  27.        android:layout_marginLeft="0dp"
  28.        android:layout_marginRight="0dp"
  29.        android:layout_marginBottom="3dp"
  30.        app:layoutManager="LinearLayoutManager"
  31.        tools:context=".expirydatefragment.ExpiryDatesFragment"
  32.        app:layout_behavior="@string/appbar_scrolling_view_behavior"
  33.        tools:listitem="@layout/fragment_expiry_dates_list_item" />
  34.  
  35.     <Button
  36.        android:id="@+id/buttonNewOrOpened"
  37.        android:layout_width="wrap_content"
  38.        android:layout_height="wrap_content"
  39.        android:layout_alignParentBottom="true"
  40.        android:layout_centerInParent="false"
  41.        android:layout_marginBottom="8dp"
  42.        android:layout_marginTop="8dp"
  43.        android:enabled="false"
  44.        android:text="New" />
  45.  
  46.     <Button
  47.        android:id="@+id/buttonUsed"
  48.        android:layout_width="wrap_content"
  49.        android:layout_height="wrap_content"
  50.        android:layout_alignParentBottom="true"
  51.        android:layout_toEndOf="@id/buttonNewOrOpened"
  52.        android:layout_marginBottom="8dp"
  53.        android:layout_marginTop="8dp"
  54.        android:enabled="false"
  55.        android:text="Used" />
  56.  
  57.     <ImageButton
  58.        android:id="@+id/buttonScanner"
  59.        android:layout_width="wrap_content"
  60.        android:layout_height="wrap_content"
  61.        android:layout_alignParentBottom="true"
  62.        android:layout_gravity="center"
  63.        android:layout_marginStart="8dp"
  64.        android:layout_marginTop="8dp"
  65.        android:layout_marginEnd="8dp"
  66.        android:layout_marginBottom="8dp"
  67.        android:layout_toStartOf="@id/buttonAdd"
  68.        android:background="@drawable/roundcorner"
  69.        android:padding="8dp"
  70.        android:src="@android:drawable/ic_menu_gallery"
  71.        android:contentDescription="scan product" />
  72.  
  73.     <ImageButton
  74.        android:id="@+id/buttonAdd"
  75.        android:layout_width="wrap_content"
  76.        android:layout_height="wrap_content"
  77.        android:layout_alignParentEnd="true"
  78.        android:layout_alignParentBottom="true"
  79.        android:layout_gravity="center"
  80.        android:layout_marginStart="8dp"
  81.        android:layout_marginTop="8dp"
  82.        android:layout_marginEnd="8dp"
  83.        android:layout_marginBottom="8dp"
  84.        android:padding="8dp"
  85.        android:background="@drawable/roundcorner"
  86.        android:src="@android:drawable/ic_input_add"
  87.        app:layout_dodgeInsetEdges="bottom"
  88.        android:contentDescription="add product" />
  89.  
  90. </RelativeLayout>
  91.  
  92. <TextView
  93.    android:layout_width="wrap_content"
  94.    android:layout_height="wrap_content"
  95.    android:layout_gravity="bottom"
  96.    app:layout_dodgeInsetEdges="bottom"
  97.    android:text="TEST"/>
  98.  
  99. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement