Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created May 13, 2018 23:33
Show Gist options
  • Save adrianhall/b43d86ea779c464fb1d6a6541c93a297 to your computer and use it in GitHub Desktop.
Save adrianhall/b43d86ea779c464fb1d6a6541c93a297 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
tools:context=".ui.NoteListActivity">
<android.support.design.widget.FloatingActionButton
android:id="@+id/note_list_add_note"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:clickable="true"
android:focusable="true"
android:tint="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/ic_add_black_24dp" />
<android.support.v7.widget.RecyclerView
android:id="@+id/note_list_recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:padding="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" >
</android.support.v7.widget.RecyclerView>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment