Side sheets are surfaces containing supplementary content that are anchored to the left or right edge of the screen.
Common usage:
Standard Side Sheet display content that complements the screen’s primary content. They remain visible while users interact with primary content.
Modal side sheets are used on mobile instead of standard side sheets, due to limited screen size. They can display the same types of content as standard side sheets, but must be dismissed in order to interact with the underlying content.
Dependency :
Add these library to BuildGradle app
implementation ‘com.google.android.material:material:1.8.0’
Create SideSheet layout. I am creating simple layout to show the Side Sheet which will contains list of shcekbox. The side sheet will slide from right side app when button is clicked
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cl_layout_container"
style="@style/Widget.Material3.SideSheet.Modal"
android:layout_width="wrap_content"
android:layout_height="match_parent"…