The Android 5.0 Toolbar adds extra padding, causing TabBarView to not match parent.

Adding the following after calling super(context, attrs, defStyle); in TabBarView fixes the issue:
setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.MATCH_PARENT));
The material design guidelines show that no dividers should be used in tabs. I suggest you remove the dividers to match the new guidelines.
The Android 5.0 Toolbar adds extra padding, causing
TabBarViewto not match parent.Adding the following after calling
super(context, attrs, defStyle);inTabBarViewfixes the issue:The material design guidelines show that no dividers should be used in tabs. I suggest you remove the dividers to match the new guidelines.