Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An Android List View implementation with support for drawable cells and many other swipe related features
Java Shell Groovy
Branch: master

This branch is 14 commits ahead, 41 commits behind 47deg:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gradle/wrapper
swipelistview-samples
swipelistview
.gitignore
LICENSE.txt
NOTICE.txt
README.md
build.gradle
gradlew
gradlew.bat
pom.xml
settings.gradle

README.md

SwipeListView (Play Store Demo)

An Android List View implementation with support for drawable cells and many other swipe related features.

Click to watch video

SwipeListView screenshot

Introduction

SwipeListView was born out of the need to add swipe gestures to ListView on Android for @ 47 Degrees Clients. Contributions and constructive feedback are welcome.

Download

Maven Dependency

SwipeListView may be automatically imported into your project if you already use Maven. Just declare android-swipelistview as a maven dependency. If you wish to always use the latest unstable snapshots, add the Sonatype repository where the SwipeListView snapshot artifacts are being deployed. SwipeListView official releases will be made available at Maven Central.

<dependency>
    <groupId>com.fortysevendeg.swipelistview</groupId>
    <artifactId>swipelistview</artifactId>
    <version>1.1</version>
    <type>apklib</type>
</dependency>

APKLib and others

You can get the releases, snapshots and other forms in which SwipeListView is distributed from the Maven sonatype Repository here Downloads.

Dependencies

SwipeListView depends on the following libraries.

  • com.nineoldandroids

SwipeListView expects that you include one of the Google Android compatibility libraries in order to use Loaders in versions that do not support them natively. Depending on your requirements you may choose to include one of the following...

  • com.google.android :
    • support-v4 (Available in Maven Central)

Using the standalone SwipeListView JAR

If you manually include the single SwipeListView jar swipelistview-1.0-SNAPSHOT.jar in your libs/ folder you would also have to add the following dependencies:

You'd have to provide also the attrs.xml inside your directory "res/values" so the attributes are properly picked up by the runtime.

We do discourage people from manually adding the jars and recomend following the maven or apklib aproach to include SwipeListView library in your own project.

Demo

You can see a demo SwipeListView in action at android-swipelistview-sample or install it from Google Play

XML Usage

If you decide to use SwipeListView as a view, you can define it in your xml layout like this:

    <com.fortysevendeg.swipelistview.SwipeListView
            xmlns:swipe="http://schemas.android.com/apk/res-auto"
            android:id="@+id/example_lv_list"
            android:listSelector="#00000000"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            swipe:swipeFrontView="@+id/front"
            swipe:swipeBackView="@+id/back"
            swipe:swipeActionLeft="[reveal | dismiss]"
            swipe:swipeActionRight="[reveal | dismiss]"
            swipe:swipeMode="[none | both | right | left]"
            swipe:swipeCloseAllItemsWhenMoveList="[true | false]"
            swipe:closeOthersOnOpen="[true | false]"
            swipe:swipeOpenOnLongPress="[true | false]"
            swipe:swipeAnimationTime="[miliseconds]"
            swipe:swipeOffsetLeft="[dimension]"
            swipe:swipeOffsetRight="[dimension]"
            swipe:swipeOvershootOffset="[true | false]"
            />
  • swipeFrontView - Required - front view id.
  • swipeBackView - Required - back view id.
  • swipeActionLeft - Optional - left swipe action Default: 'reveal'
  • swipeActionRight - Optional - right swipe action Default: 'reveal'
  • swipeMode - Gestures to enable or 'none'. Default: 'both'
  • swipeCloseAllItemsWhenMoveList - Close revealed items on list motion. Default: 'true'
  • closeOthersOnOpen - Close other revealed items on opening an item. Default: 'false'
  • swipeOpenOnLongPress - Reveal on long press Default: 'true'
  • swipeAnimationTime - item drop animation time. Default: android configuration
  • swipeOffsetLeft - left offset
  • swipeOffsetRight - right offset
  • swipeOvershootOffset - if you can swipe past the set offset. Default: 'true'

License

Copyright (C) 2012 47 Degrees, LLC http://47deg.com hello@47deg.com

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.

Something went wrong with that request. Please try again.