gitmyhub

AndroidSwipeLayout

Java ★ 12k updated 2y ago

The Most Powerful Swipe Layout!

An Android library that adds swipe-to-reveal hidden buttons or content to any part of your screen, works in lists, grids, and any other layout type, not just standard list views.

JavaAndroidGradleMavensetup: easycomplexity 2/5

AndroidSwipeLayout is a Java library for Android app developers that adds swipe-to-reveal behavior to any part of a screen. When a user swipes a row or card, hidden buttons or content slide into view, similar to how messaging apps show Delete or Archive options when you swipe a conversation.

The library was built because the author needed this effect for a personal app and found that existing solutions only worked in one specific type of list view (ListView) and had reliability issues. This library is designed to work in any layout type, including grid views and nested containers, making it more flexible for different screen designs.

As an Android developer, you add it to your project via Gradle or Maven, wrap the parts of your layout you want to be swipeable in the provided component, and define what hidden content should appear when swiped. The library sends callbacks when content opens, closes, or updates, so you can react to those events in your app code.

The project links to a separate wiki for detailed usage instructions beyond what the README covers. It was created as an open contribution to Android development and is available to include in your own apps.

Where it fits