Implement BlurView in XML layout
masterTo use BlurView, you must wrap the content you want to blur inside an eightbitlab.com.blurview.BlurTarget. The BlurView is then placed as a separate view (typically an overlay) that will render the blurred snapshot of the target as its background. Children of the BlurView will not be blurred.
<!-- This is the content to be blurred by the BlurView. -->
<eightbitlab.com.blurview.BlurTarget
android:id="@+id/target"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Your main content here -->
</eightbitlab.com.blurview.BlurTarget>
<eightbitlab.com.blurview.BlurView
android:id="@+id/blurView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:blurOverlayColor="@color/colorOverlay">
<!-- Any child View here (e.g., TabLayout) will NOT be blurred -->
</eightbitlab.com.blurview.BlurView>