Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingLeft="0dp"
- android:paddingRight="0dp">
- <include
- android:id="@+id/header"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- layout="@layout/fragment_expiry_dates_list_header" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/products_list"
- android:name="com.example.expirydate.ui.main.ExpiryDatesFragment"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/header"
- android:layout_above="@id/buttonNewOrOpened"
- android:layout_marginLeft="0dp"
- android:layout_marginRight="0dp"
- android:layout_marginBottom="3dp"
- app:layoutManager="LinearLayoutManager"
- tools:context=".expirydatefragment.ExpiryDatesFragment"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- tools:listitem="@layout/fragment_expiry_dates_list_item" />
- <Button
- android:id="@+id/buttonNewOrOpened"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerInParent="false"
- android:layout_marginBottom="8dp"
- android:layout_marginTop="8dp"
- android:enabled="false"
- android:text="New" />
- <Button
- android:id="@+id/buttonUsed"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_toEndOf="@id/buttonNewOrOpened"
- android:layout_marginBottom="8dp"
- android:layout_marginTop="8dp"
- android:enabled="false"
- android:text="Used" />
- <ImageButton
- android:id="@+id/buttonScanner"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_gravity="center"
- android:layout_marginStart="8dp"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="8dp"
- android:layout_toStartOf="@id/buttonAdd"
- android:background="@drawable/roundcorner"
- android:padding="8dp"
- android:src="@android:drawable/ic_menu_gallery"
- android:contentDescription="scan product" />
- <ImageButton
- android:id="@+id/buttonAdd"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentBottom="true"
- android:layout_gravity="center"
- android:layout_marginStart="8dp"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="8dp"
- android:padding="8dp"
- android:background="@drawable/roundcorner"
- android:src="@android:drawable/ic_input_add"
- app:layout_dodgeInsetEdges="bottom"
- android:contentDescription="add product" />
- </RelativeLayout>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- app:layout_dodgeInsetEdges="bottom"
- android:text="TEST"/>
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement