Add swipe-to-delete or swipe-to-archive buttons to a list of messages or items in an Android app.
Reveal hidden action buttons on a card or grid item when a user swipes it, in any layout container.
Listen to swipe open and close events to trigger app logic like marking an item as read when it is swiped.
Replace an existing swipe solution that only worked in ListView with one that works across GridView and nested containers.
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.
← daimajia on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.