fragment_consomation_item_list.xml 1.57 KB
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
    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.support.v7.widget.RecyclerView
        android:id="@+id/consomation_list"
        android:name="net.plil.clubinfo.etunicorn.app.Consomation"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        app:layoutManager="LinearLayoutManager"
        tools:context="net.plil.clubinfo.etunicorn.app.FragmentConsomation"
        tools:listitem="@layout/fragment_consomation_item" />

    <android.support.design.widget.FloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:layout_gravity="bottom|end"
        android:layout_margin="24dp"
        android:id="@+id/consomation_add"
        app:fabSize="auto"
        app:srcCompat="@android:drawable/ic_menu_add"
        app:backgroundTint="@color/colorPrimaryDark"
        app:elevation="6dp"
        app:rippleColor="@color/colorAccent"
        app:layout_anchor="@id/consomation_list"
        app:layout_anchorGravity="bottom|right|end"
        app:layout_behavior="net.plil.clubinfo.etunicorn.utils.ScrollAwareFABBehavior"/>

</android.support.design.widget.CoordinatorLayout>