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.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

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.

Quick Actions
Details
Creator
davideas
Language
Java
Category
ai-agent
Published
5/2/2015

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.