Skip to content

Commit

Permalink
Fix XML controller default; README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerca committed Oct 19, 2012
1 parent b397d27 commit bcce0ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ News

**Sept. 26, 2012**: Drag-sorting is now animated! (optional, of course)
Items slide around underneath the floating (dragged) View.

**Oct. 15, 2012**: Refactoring rampage. Backward compatibility is slightly
broken. New features make it worthwhile :) and include: total floating
View customization, total control over drag start/stop,
Expand Down Expand Up @@ -89,7 +90,7 @@ of 1 means items snap from position to position without animation.
* `track_drag_sort`: (bool, false) Debugging option; explained below.
* `use_default_controller`: (bool, true) Have DSLV create a
DragSortController instance and pass the following xml attributes
to it.
to it. If you set this to false, ignore the following attributes.
* `drag_handle_id`: (id, 0) Android resource id that points to a
child View of a list item (or the root View of the list item
layout). This identifies the "drag handle," or the View within a
Expand Down
3 changes: 2 additions & 1 deletion demo/res/layout/dslv_fragment_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
dslv:max_drag_scroll_speed="0.5"
dslv:float_alpha="0.6"
dslv:slide_shuffle_speed="0.3"
dslv:track_drag_sort="false" />
dslv:track_drag_sort="false"
dslv:use_default_controller="false" />
21 changes: 0 additions & 21 deletions demo/res/layout/dslv_main.xml

This file was deleted.

2 changes: 1 addition & 1 deletion src/com/mobeta/android/dslv/DragSortListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public DragSortListView(Context context, AttributeSet attrs) {

boolean useDefault = a.getBoolean(
R.styleable.DragSortListView_use_default_controller,
false);
true);

if (useDefault) {
boolean removeEnabled = a.getBoolean(
Expand Down

0 comments on commit bcce0ff

Please sign in to comment.