fragment_event_list.xml 1.76 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.v4.widget.SwipeRefreshLayout
        android:id="@+id/event_swipeRefresh"
        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.v4.widget.SwipeRefreshLayout>

    <android.support.design.widget.FloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:layout_margin="24dp"
        android:layout_gravity="end|bottom"
        android:id="@+id/event_add"
        app:srcCompat="@android:drawable/ic_input_add"
        android:tint="@android:color/white"
        app:elevation="6dp"
        android:color="?android:colorControlHighlight"
        app:layout_anchorGravity="bottom|end"
        app:layout_behavior="net.plil.clubinfo.etunicorn.utils.ScrollAwareFABBehavior" />

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