diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..2c04f07 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +ListBottomSheetProject \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..41a4dca --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/zak/listbottomsheetproject/MainActivity.kt b/app/src/main/java/com/zak/listbottomsheetproject/MainActivity.kt index e46dca1..f2e5af6 100644 --- a/app/src/main/java/com/zak/listbottomsheetproject/MainActivity.kt +++ b/app/src/main/java/com/zak/listbottomsheetproject/MainActivity.kt @@ -84,6 +84,11 @@ class MainActivity : AppCompatActivity() { multiListSheet.show() } + btnClearMultiSheet.setOnClickListener { + + multiListSheet.clearSelectedItems() + } + } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 473479e..9a418c4 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -45,4 +45,13 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/btnOpenSheet" /> +