mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-16 20:31:00 +02:00
I left the non-preference related dslv code untouched and took it from here https://github.com/sbolotovms/drag-sort-listview (This is one of many forks, which had migrated android to androidx) The base for the code in DragSortListPreferenceFragment.java and DragSortListPreference.java comes from: https://github.com/kd7uiy/drag-sort-listview I heavily modiefied it moved it to androidx
14 lines
564 B
XML
14 lines
564 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.mobeta.android.dslv.DragSortListView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:dslv="http://schemas.android.com/apk/res-auto"
|
|
android:id="@android:id/list"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="3dp"
|
|
android:choiceMode="multipleChoice"
|
|
dslv:sort_enabled="true"
|
|
dslv:remove_enabled="false"
|
|
dslv:drag_handle_id="@id/drag_handle" /> |