MCPcopy
hub / github.com/daimajia/AndroidSwipeLayout

github.com/daimajia/AndroidSwipeLayout @v1.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.0 ↗
310 symbols 656 edges 24 files 25 documented · 8%
README

Android Swipe Layout

Gitter

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.2.0@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.2.0</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. :smiley:

Extension points exported contracts — how you extend this code

SwipeItemMangerInterface (Interface)
(no doc) [10 implementers]
library/src/main/java/com/daimajia/swipe/interfaces/SwipeItemMangerInterface.java
OnItemClickListener (Interface)
(no doc) [2 implementers]
demo/src/main/java/com/daimajia/swipedemo/adapter/util/RecyclerItemClickListener.java
SwipeAdapterInterface (Interface)
(no doc) [10 implementers]
library/src/main/java/com/daimajia/swipe/interfaces/SwipeAdapterInterface.java
OnLayout (Interface)
android.view.View.OnLayoutChangeListener added in API 11. I need to support it from API 8. [2 implementers]
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
DoubleClickListener (Interface)
(no doc) [3 implementers]
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
SwipeListener (Interface)
(no doc) [1 implementers]
library/src/main/java/com/daimajia/swipe/SwipeLayout.java

Core symbols most depended-on inside this repo

getSurfaceView
called by 26
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
setOnClickListener
called by 16
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
close
called by 13
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
getOpenStatus
called by 12
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
open
called by 11
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
addDrag
called by 10
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
getCurrentBottomView
called by 10
library/src/main/java/com/daimajia/swipe/SwipeLayout.java
setMode
called by 8
library/src/main/java/com/daimajia/swipe/interfaces/SwipeItemMangerInterface.java

Shape

Method 271
Class 27
Interface 8
Enum 4

Languages

Java100%

Modules by API surface

library/src/main/java/com/daimajia/swipe/SwipeLayout.java104 symbols
library/src/main/java/com/daimajia/swipe/implments/SwipeItemMangerImpl.java28 symbols
library/src/main/java/com/daimajia/swipe/adapters/BaseSwipeAdapter.java15 symbols
library/src/main/java/com/daimajia/swipe/adapters/RecyclerSwipeAdapter.java13 symbols
library/src/main/java/com/daimajia/swipe/adapters/ArraySwipeAdapter.java13 symbols
library/src/main/java/com/daimajia/swipe/adapters/SimpleCursorSwipeAdapter.java12 symbols
library/src/main/java/com/daimajia/swipe/adapters/CursorSwipeAdapter.java12 symbols
demo/src/main/java/com/daimajia/swipedemo/adapter/RecyclerViewAdapter.java12 symbols
library/src/main/java/com/daimajia/swipe/interfaces/SwipeItemMangerInterface.java11 symbols
demo/src/main/java/com/daimajia/swipedemo/adapter/ListViewAdapter.java11 symbols
demo/src/main/java/com/daimajia/swipedemo/ListViewExample.java11 symbols
demo/src/main/java/com/daimajia/swipedemo/adapter/GridViewAdapter.java8 symbols

For agents

$ claude mcp add AndroidSwipeLayout \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact