mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-26 11:56:48 +01:00
e1f2e0c830
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
40 lines
1.5 KiB
XML
40 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<resources>
|
|
<declare-styleable name="DragSortListView">
|
|
<attr name="collapsed_height" format="dimension" />
|
|
|
|
<!-- Float view -->
|
|
<attr name="float_background_color" format="color" />
|
|
<attr name="float_alpha" format="float" />
|
|
|
|
<!-- Animations -->
|
|
<attr name="remove_animation_duration" format="integer" />
|
|
<attr name="drop_animation_duration" format="integer" />
|
|
<attr name="slide_shuffle_speed" format="float" />
|
|
|
|
<!-- Remove properties -->
|
|
<attr name="remove_enabled" format="boolean" />
|
|
<attr name="remove_mode">
|
|
<enum name="clickRemove" value="0" />
|
|
<enum name="flingRemove" value="1" />
|
|
</attr>
|
|
<attr name="fling_handle_id" format="integer" />
|
|
<attr name="click_remove_id" format="integer" />
|
|
|
|
<!-- Drag properties -->
|
|
<attr name="drag_enabled" format="boolean" />
|
|
<attr name="drag_start_mode">
|
|
<enum name="onDown" value="0" />
|
|
<enum name="onMove" value="1" />
|
|
<enum name="onLongPress" value="2" />
|
|
</attr>
|
|
<attr name="drag_handle_id" format="integer" />
|
|
<attr name="drag_scroll_start" format="float" />
|
|
<attr name="max_drag_scroll_speed" format="float" />
|
|
|
|
<attr name="track_drag_sort" format="boolean" />
|
|
<attr name="use_default_controller" format="boolean" />
|
|
<attr name="sort_enabled" format="boolean" />
|
|
</declare-styleable>
|
|
</resources>
|