Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
Tim Roes edited this page Jul 6, 2014 · 12 revisions

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

The lib is based on Jake Wharton's SwipeToDismissNOA that is based on Roman Nurik's SwipeToDismiss sample.

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'

    Where X.Y.Z is a valid release. You can find all releases in Maven Central.

  • 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:

Troubleshooting

setOn[Long]ClickListener is not working or my list items have no touch feedback color anymore

To fix this, add the following attribute to the root element of the list item's layout: android:descendantFocusability="blocksDescendants"

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