| <?xml version="1.0" encoding="utf-8"?> |
| <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:paddingBottom="@dimen/activity_vertical_margin" |
| android:paddingLeft="@dimen/activity_horizontal_margin" |
| android:paddingRight="@dimen/activity_horizontal_margin" |
| android:paddingTop="@dimen/activity_vertical_margin" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior" |
| tools:context="io.v.todos.MainActivity" |
| tools:showIn="@layout/activity_main"> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <android.support.v7.widget.RecyclerView |
| android:id="@+id/recycler" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| app:layoutManager="LinearLayoutManager"/> |
| |
| <TextView |
| android:id="@+id/empty" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:gravity="center" |
| android:alpha="0" |
| android:visibility="gone"/> |
| </FrameLayout> |
| |
| <android.support.design.widget.FloatingActionButton |
| android:id="@+id/fab" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentRight="true" |
| android:layout_margin="@dimen/fab_margin" |
| android:clickable="true" |
| android:onClick="initiateItemAdd" |
| android:src="@android:drawable/ic_input_add" |
| app:fabSize="normal"/> |
| </RelativeLayout> |