Skip to content
Tim Roes edited this page Sep 20, 2013 · 17 revisions

EnhancedListView is a ListView, that offers several enhanced features to the default ListView in Android.

This project is the successor of SwipeToDismissUndoList. Unfortunately one main feature got lost (for the sake of several other features): The old library also worked with any kind of AbsListView. This library only offers a ListView.

Demo Application

The source code contains a demonstration app, that also can be found on Google Play.

How to include

You need to include the library into your project, by one of the following ways:

  • Include it from Maven Central (recommended)

    Just enter the following line to your build.gradle file in the dependencies section:

    compile 'de.timroes.android:EnhancedListView:X.Z.Y@aar'

    Where X.Y.Z is a valid release. You can find all releases on the release page.

    If you use Maven to build, just use the above coordinates in your pom.xml.

  • Download the aar file from the release page and reference it in the dependencies section of your build.gradle:

    compile files('libs/EnhancedListView-X.Y.Z.aar')

  • If you are using Eclipse or Ant, you are on your own. You most likely want to download the sources and import them in your build system.

How to use

After including the library, just place a <de.timroes.android.listview.EnhancedListView> tag to your layout, and give it all the attributes, you would also have passed to a regular list view.

Just get a reference when you create your activity/fragment via findViewById and enable all the features you need. The next section describes all features in more in-depth.

Features

You will find the documentation for each feature on its own wiki page:

  • Delete with Undo
  • Swipe To Dismiss

License

This project is licensed under the Apache License, Version 2.0. If you commit to this project (e.g. by sending Pull Requests) you agree to publish your code under the same license.

Copyright 2013 Tim Roes

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Clone this wiki locally