Skip to content

Commit

Permalink
Add documentation to checkable support
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerca committed Dec 14, 2012
1 parent a197854 commit 16e43e9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ DragSortListView
News
----

**Dec. 8, 2012**: Version 0.5.0 is released. Supports ListView
multi-choice and single-choice modes thanks to the hard work of
[Mattias Flodin](https://github.com/mattiasflodin)! Awesome-sauce.
Check out the new demos.

**Nov. 23, 2012**: Hmmm, what's this? → [Gittip](https://www.gittip.com/bauerca) :)

**Nov. 17, 2012**: [Drag-Sort Demos](https://play.google.com/store/apps/details?id=com.mobeta.android.demodslv)
Expand Down Expand Up @@ -201,6 +206,12 @@ within in a custom ListAdapter or CursorWrapper that implements the
DropListener interface. See Issue #20 for a discussion of this.
**Update**: Or simply use the DragSortCursorAdapter class!

If your DSLV instance `android:choiceMode` is not `"none"`, and your
ListAdapter does not have stable ids, you must call
[DragSortListView.moveCheckState(int from, int to)](http://bauerca.github.com/drag-sort-listview/reference/com/mobeta/android/dslv/DragSortListView.html#moveCheckState(int, int))
within `drop(from, to)`. See the documentation in the DSLV API for more
info.

#### DragSortListView.RemoveListener

As the TI did, DSLV provides gestures for removing the floating
Expand Down
4 changes: 2 additions & 2 deletions demo/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobeta.android.demodslv"
android:versionCode="2"
android:versionName="0.4.1">
android:versionCode="3"
android:versionName="0.5.0">
<uses-sdk android:minSdkVersion="7"
android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
4 changes: 2 additions & 2 deletions demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Copyright 2012 Andreas Schildbach
<parent>
<groupId>com.mobeta.android.dslv</groupId>
<artifactId>parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>com.mobeta.android.demodslv</groupId>
<artifactId>drag-sort-listview-demo</artifactId>
<packaging>apk</packaging>
<version>0.4.1-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions library/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobeta.android.dslv"
android:versionCode="2"
android:versionName="0.4.1">
android:versionCode="3"
android:versionName="0.5.0">
<uses-sdk android:targetSdkVersion="7"
android:minSdkVersion="7" />
</manifest>
4 changes: 2 additions & 2 deletions library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Copyright 2012 Andreas Schildbach
<groupId>com.mobeta.android.dslv</groupId>
<artifactId>drag-sort-listview</artifactId>
<packaging>apklib</packaging>
<version>0.4.1-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>

<parent>
<groupId>com.mobeta.android.dslv</groupId>
<artifactId>parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 2 additions & 0 deletions library/src/com/mobeta/android/dslv/DragSortListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ public class DragSortListView extends ListView {

/**
* Enable/Disable item dragging
*
* @attr name dslv:drag_enabled
*/
private boolean mDragEnabled = true;

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Copyright 2012 Andreas Schildbach

<groupId>com.mobeta.android.dslv</groupId>
<artifactId>parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.5.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit 16e43e9

Please sign in to comment.