Skip to content

Commit

Permalink
Make it possible to scroll swipe actions dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed May 9, 2024
1 parent 084723a commit e07c720
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions app/src/main/res/layout/swipeactions_dialog.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">

<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/enableSwitch"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/enable_swipeactions" />
android:orientation="vertical">

<include
android:id="@+id/actionLeftContainer"
layout="@layout/swipeactions_row" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/enableSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/enable_swipeactions" />

<include
android:id="@+id/actionRightContainer"
layout="@layout/swipeactions_row" />
<include
android:id="@+id/actionLeftContainer"
layout="@layout/swipeactions_row" />

</LinearLayout>
<include
android:id="@+id/actionRightContainer"
layout="@layout/swipeactions_row" />

</LinearLayout>

</ScrollView>

0 comments on commit e07c720

Please sign in to comment.