I just updated my gradle to the following:
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
And all of a sudden my recyclerview's individual rows fills up the whole screen:
Also, my tablayout stopped switching fragments when I click the tab title. It does switch tho if you swipe.
This is my main activity
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
android:id="@+id/activity_main_container"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include
android:id="@+id/app_bar"
layout="@layout/app_bar" />
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:foregroundTint="@color/colorAccent"
app:tabMode="fixed"
app:tabMaxWidth="0dp"
app:tabGravity="fill"/>
<android.support.v4.view.ViewPager
android:id="@+id/tabs_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:id="@+id/app_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/vector_plus"
android:backgroundTint="@color/toeyoAccentColor"
android:elevation="4dp"/>
</android.support.design.widget.CoordinatorLayout>
This it what I followed for the Tablayout
http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/
