Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

AndroidSwipeLayout

> 编程语言
Open source

The Most Powerful Swipe Layout!

12.4K stars0 likes3 views
WebsiteGitHub

About

The Most Powerful Swipe Layout!

Android Swipe Layout

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

groovy
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

xml
<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:

Issues· 383 open

View all issuesOpen on GitHub
  • #542

    请教下 item长按事件可不可以实现拖拽排序

    Updated Aug 12, 2024
  • #541

    In recyclerview other rows should get closed when we swipe open any row

    Updated Aug 12, 2024
  • #552

    Quickly opening the second item, the first item how closed?

    Updated Jul 13, 2024
  • #575

    右滑无内容问题

    Updated Jan 9, 2024
  • #574

    Disable short swipe, increase distance to open

    Updated Dec 22, 2023
  • #573

    How to open bottom-view as default state without animation?

    Updated Nov 29, 2023
  • #571

    getOpenItems wrong if using swipe gesture to close others

    Updated Sep 25, 2023
  • #301

    how to make single item swipe and other should close automatically

    Updated Mar 20, 2023
  • #569

    菜单栏问题

    Updated Dec 29, 2022
  • #568

    怎么实现右边的菜单栏的长度跟随滑动距离而变化

    Updated Dec 28, 2022

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言