app/src/main/res/layout/fragment_feed.xml
<?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=".activities.GroupsActivity"
tools:layout_editor_absoluteY="25dp">
<android.support.design.widget.FloatingActionButton
android:id="@+id/createGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:clickable="true"
android:focusable="true"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_input_add"
android:tint="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
/>
<android.support.v7.widget.SearchView
android:id="@+id/feed_search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
app:defaultQueryHint="Search..."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<Button
android:id="@+id/sortButton"
android:layout_width="0dp"
android:layout_height="55dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="117dp"
android:layout_marginStart="15dp"
android:text="Sort"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/toggleAllCourses"
app:layout_constraintHorizontal_bias="0.068"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent" />
<android.support.v7.widget.RecyclerView
android:id="@+id/feedRecycleViewer"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toTopOf="@+id/sortButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/feed_search" />
<ToggleButton
android:id="@+id/toggleAllCourses"
android:layout_width="100dp"
android:layout_height="55dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="80dp"
android:text="Available"
android:textOff="Available"
android:textOn="Available"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/sortButton" />
<ToggleButton
android:id="@+id/toggleYourCourses"
android:layout_width="100dp"
android:layout_height="55dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="80dp"
android:text="Your Courses"
android:textOff="Your Courses"
android:textOn="Your Courses"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.122"
app:layout_constraintStart_toEndOf="@+id/sortButton" />
</android.support.constraint.ConstraintLayout>