ai-agent

FlexibleAdapter

Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
3,570 stars548 forksJavaUpdated 3/14/2026100% free · open source
What it does

FlexibleAdapter is a single Android library that adds powerful, ready‑to‑use RecyclerView features (multiple view types, drag‑&‑drop, swipe, expandable items, selection, pagination) with minimal code.

When to use it
  • •Your app needs a list with mixed item layouts (e.g., headers, ads, content) without writing custom adapters for each type.
  • •You want built‑in drag‑&‑drop or swipe‑to‑delete behavior with smooth animations.
  • •You need expandable/collapsible sections or multi‑selection in a RecyclerView.
Ready-to-paste prompt
```java
// Example: expandable list with drag‑&‑drop
List<IFlexible> items = new ArrayList<>();
items.add(new HeaderItem("Fruits"));
items.add(new MyItem("Apple"));
items.add(new MyItem("Banana"));
items.add(new HeaderItem("Vegetables"));
items.add(new MyItem("Carrot"));

FlexibleAdapter<IFlexible> adapter = new FlexibleAdapter<>(items, this);
adapter.setDisplayHeadersAtStartUp(true);
adapter.setDragEnabled(true);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
```
Heads up: FlexibleAdapter requires the same AndroidX version for RecyclerView and support libraries as the one used in your project; mixing AndroidX with the older support library will cause NoClassDefFoundError at runtime.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/flexibleadapter && curl -fsSL https://workflowstacks.com/api/skills/flexibleadapter/claude-skill -o ~/.claude/skills/flexibleadapter/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How FlexibleAdapter works
Codeflow
Free to inspect

FlexibleAdapter is a large Java project (~28k lines across 142 code files, plus 13 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit 7 months ago, Apache-2.0 license, has a test suite.

Size
Large codebase
~28k lines · 142 code files · ~4 h to skim
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Java/JVM
No API keys detected
Java 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    flexible-adapter/build.gradle
    Inside flexible-adapter/ — the main logic begins here
What's in each folder
flexible-adapter/Core code — the actual logic40 files
flexible-adapter-app/Folder517 files
screenshots/Folder55 files
flexible-adapter-ui/Folder17 files
gradle/Folder2 files
READMEHas testsThin docsNo CIApache-2.0 licenseLast update 7 mo ago
Quick Actions
Details
Creator
davideas
Language
Java
Category
ai-agent
Published
5/2/2015

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/flexibleadapter.svg)](https://workflowstacks.com/skills/flexibleadapter?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.