Try setting app:elevation="0dp" (not android:elevation ) for AppBarLayout .
If you do not have the application namespace in your xml, add xmlns:app="http://schemas.android.com/apk/res-auto" .
The difference between these two properties can be found here .
After that, make sure that you do not add any background / border with any of these properties:
<android.support.design.widget.TabLayout android:background="?attr/colorPrimary" android:translationZ="2dp" app:layout_anchor="@+id/appbar" app:layout_anchorGravity="bottom" app:tabGravity="fill" app:tabIndicatorColor="@android:color/white"/>
Or the theme you are using for AppBarLayout .
source share