1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-25 22:40:05 +02:00
Gadgetbridge/app/src/main/res/values/dslv_attrs.xml
Andreas Shimokawa e1f2e0c830 Experiment with a draggable sort list.
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
2020-11-07 22:48:34 +01:00

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>