I have a layout for a fragment with three tabs. The XML code of the layout is as follows:
Open app_bar_main.xml and set app:elevation="0dp" inside AppBarLayout, then clean and rebuild project.
app:elevation="0dp"
AppBarLayout
... app:elevation="0dp">