Github url

AndroidSwipeLayout

by daimajia

The Most Powerful Swipe Layout!

11.8K Stars 2.7K Forks Last release: about 5 years ago (v1.2.0) MIT License 175 Commits 20 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Android Swipe Layout Build Status

Gitter

Insight.io

This is the brother of AndroidViewHover.

One year ago, I started to make an app named EverMemo with my good friends. The designer gave me a design picture, the design like this:

I found it was pretty hard to achieve this effect, cause you had to be very familiar with the Android Touch System. It was beyond my ability that moment, and I also noticed that there was no such a concept library...

Time passed, finally...as you see right now.

Demo

Download Demo

Before I made this, I actually found some libraries (eg.SwipeListView) that helps developers to integrate swiping with your UI component.

But it only works in

ListView

, and it has too many issues that they never care. What a pity!

When I start to make this library, I set some goals:

  • Can be easily integrated in anywhere, ListView, GridView, ViewGroup etc.
  • Can receive
    onOpen
    ,
    onClose
    ,
    onUpdate
    callbacks.
  • Can notifiy the hidden children how much they have shown.
  • Can be nested each other.
  • Can handle complicate situation, just like this.

Usage

Step 1

Gradle

dependencies { compile 'com.android.support:recyclerview-v7:21.0.0' compile 'com.android.support:support-v4:20.+' compile "com.daimajia.swipelayout:library:[email protected]" }

Maven

<dependency>
    <groupid>com.google.android</groupid>
    <artifactid>support-v4</artifactid>
    <version>r6</version>
</dependency><dependency>
    <groupid>com.google.android</groupid>
    <artifactid>recyclerview-v7</artifactid>
    <version>21.0.0</version>
</dependency><dependency>
    <groupid>com.daimajia.swipelayout</groupid>
    <artifactid>library</artifactid>
    <version>1.2.0</version>
    <type>apklib</type>
</dependency>

Eclipse

AndroidSwipeLayout-v1.1.8.jar

Step 2

Make sure to use the internal adapter instead of your own!

Wiki Usage

Wiki

Go to Wiki

About me

A student in mainland China.

Welcome to offer me an internship. If you have any new idea about this project, feel free to contact me. :smiley:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.