You can try article below. It use this library to create blur effect.Medium
dependency
implementation 'com.eightbitlab:blurview:1.6.6'
layout.xml
<eightbitlab.com.blurview.BlurView
android:id="@+id/blur_view_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:blurOverlayColor="@color/white_40">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_main"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabMaxWidth="0dp"
app:tabGravity="fill"
app:tabMode="fixed"
app:tabIndicatorColor="@color/black"
android:minHeight="?actionBarSize"/>
</eightbitlab.com.blurview.BlurView>
then setup blur config in your activity
blurViewTab.setupWith(viewGroup)
.setBlurAlgorithm(RenderScriptBlur(context))
.setBlurRadius(16f)
.setBlurAutoUpdate(true)
.setHasFixedTransformationMatrix(true)
https://miro.medium.com/max/712/0*9Ns4U3PNxHGm9NLf.png