fragment_event_list.xml 1.43 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/event_list"
    android:name="net.plil.clubinfo.etunicorn.app.event.EventFragment"
    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.event.EventFragment"
    tools:listitem="@layout/fragment_event"
    />

<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/event_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/event_list"
    app:layout_anchorGravity="bottom|right|end"
    app:layout_behavior="net.plil.clubinfo.etunicorn.utils.ScrollAwareFABBehavior" />

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