Go to file
代码家 f9ac392ef6 Merge pull request #106 from linfaxin/master
Refactor the touch logic and usage.
2015-04-08 14:28:57 +08:00
demo Refactor. Stronger and easier. 2015-03-22 11:14:54 +08:00
gradle/wrapper Update Gradle Wrapper 2015-01-31 01:24:44 -06:00
library remove a useless try catch 2015-04-08 10:21:36 +08:00
.gitignore Android Swipe Layout born 2014-08-25 12:08:30 +08:00
LICENSE Initial commit 2014-08-25 12:09:33 +08:00
README.md Update version number for Gradle and Maven 2015-03-22 12:05:50 +00:00
build.gradle support compile under build:gradle:1.0.0 2015-01-24 09:09:23 +08:00
gradle.properties v1.1.8 2015-01-31 18:53:13 +08:00
gradlew Android Swipe Layout born 2014-08-25 12:08:30 +08:00
gradlew.bat Android Swipe Layout born 2014-08-25 12:08:30 +08:00
settings.gradle Android Swipe Layout born 2014-08-25 12:08:30 +08:00

README.md

Android Swipe Layout

![Gitter](https://badges.gitter.im/Join Chat.svg)

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:1.1.9@aar"
}

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.1.9</version>
    <type>apklib</type>
</dependency>

Eclipse

AndroidSwipeLayout-v1.1.8.jar

Step 2

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. 😃