Go to file
John Shelley 418898c33c Setup Clicks, Deletion, Animation
Removed 2-way-view in favor of more simplistic items. Based on research most people have used the ViewHolder for onItemClick listener support, sometimes I've seen a ViewHolder implement View.OnClickListener, however that didn't work for our example so our root view has an itemclicklistener set.

On top of that, basic animations were added via a top starred github library.

The delete is hooked up to actually remove the item from the list. However it seems glitchy in comparison.

It should be noted that it will be left up to the user to determine UI/UX aspects such as removal. The Inbox App by Google uses a swipe to remove items, where the Gmail App by Google uses a swipe to 'queue' an item for dismisal, but not dismissing it until the user makes another interaction such as scrolling or clicking another email.

A 'closeAllItems()' method was added in our Managers, as well as a minor fix that was needed by adding 'shown layouts' correctly in our SwipeListener.
2015-01-30 23:49:25 -06:00
demo Setup Clicks, Deletion, Animation 2015-01-30 23:49:25 -06:00
gradle/wrapper Android Swipe Layout born 2014-08-25 12:08:30 +08:00
library Setup Clicks, Deletion, Animation 2015-01-30 23:49:25 -06: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 Added Gitter badge 2014-12-10 14:45:15 +00:00
build.gradle (gradle) Update gradle issues.. 2014-12-18 10:58:50 -06:00
gradle.properties (recyclerview.adapter) Update adapter. See details -> 2014-12-19 10:32:59 -06: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:support-v4:20.+'
        compile "com.daimajia.swipelayout:library:1.1.7@aar"
}

Maven

<dependency>
	<groupId>com.google.android</groupId>
	<artifactId>support-v4</artifactId>
	<version>r6</version>
</dependency>
<dependency>
    <groupId>com.daimajia.swipelayout</groupId>
    <artifactId>library</artifactId>
    <version>1.1.7</version>
    <type>apklib</type>
</dependency>

Eclipse

AndroidSwipeLayout-v1.1.6.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. 😃