I have a layout for a fragment with three tabs. The XML code of the layout is as follows:
Use app:elevation="0dp" in your AppBarLayout
app:elevation="0dp"
AppBarLayout
or Use getSupportActionBar().setElevation(0); in your actvity
getSupportActionBar().setElevation(0);