android-dev-extras

Generate Android pull-to-refresh and tab-switching templates with SmartRefreshLayout, TabLayout, and ViewPager2.

Updated Nov 26, 2025
One-click install
npx skills add https://github.com/est7/agent-tool --skill android-dev-extras
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-dev-extras
Source: https://github.com/est7/agent-tool/tree/main/cfg/templates/skills/android-dev-extras
Command: npx skills add https://github.com/est7/agent-tool --skill android-dev-extras

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本 Skill 提供完整的上拉刷新和 TabLayout+ViewPager2 的实现模板,遇到需要这些功能时可以直接使用。

Core Features & Use Cases

  • 上拉刷新与加载更多:使用 SmartRefreshLayout 与 LoadState 进行状态管理。
  • 组合导航:TabLayout + ViewPager2 的整合示例,便于快速创建分页/选项卡界面。
  • 与输出状态整合:与 LoadSir 的页面状态切换集成。

Quick Start

将 fragment_sample_load_more.xml、SampleLoadMoreFragment 等示例代码导入并替换数据源即可开始。

Frequently Asked Questions about android-dev-extras

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement pull-to-refresh and load-more in Android with RecyclerView?

Pull-to-refresh and load-more functionality integrates SmartRefreshLayout with RecyclerView adapters and LoadState for state management. This Skill provides ready-to-use layout files, fragment implementations, and adapter patterns that handle refresh and pagination semantics without building from scratch.

What's the best way to combine TabLayout and ViewPager2 for tab navigation in Android?

TabLayout and ViewPager2 work together to create reliable tab-based navigation. This Skill delivers integration examples showing fragment wiring, adapter setup, and state handling so you can quickly assemble tabbed interfaces without trial-and-error.

How do I handle loading, empty, and error states in Android UI pages?

State-driven UI management uses LoadSir to switch between Loading, Empty, and Error page layouts based on data availability. This Skill integrates LoadSir with refresh workflows so state transitions happen reliably across refresh and load-more cycles.

Can I use BRVAH adapters with SmartRefreshLayout for efficient list rendering?

BRVAH (BaseRecyclerViewAdapterHelper) integrates seamlessly with SmartRefreshLayout and LoadState patterns. This Skill shows how to wire BRVAH adapters into pull-to-refresh workflows with proper notifyDataSetChanged and pagination handling.

Do I need separate code for different refresh and pagination patterns across Android apps?

No. This Skill provides a reusable template combining pull-to-refresh, load-more, and tab navigation so you import fragments, layouts, and ViewModel wiring once and adapt the data source for each app instead of rewriting UI logic.