I have a layout for a fragment with three tabs. The XML code of the layout is as follows:
If android:elevation didn't work then try app:elevation:
Try with CoordinatorLayout instead of Constraintlayout.