跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/alinaqi/claude-bootstrap/android-java

Claude Code Android Java Skill for Fragment ViewBinding

Review a Java Fragment's generated binding, view-scoped observation and behavior when its view is recreated.

中文

Install in Claude Code

Use an Android module with XML layouts, Java and ViewBinding enabled. Use the project's existing Espresso setup if you add a device test.

  1. Get the complete `skills/android-java` directory from the pinned revision.
  2. Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/android-java/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.

Example task

In a bookmarks Fragment, leave the screen and navigate back. Design a check that the recreated list renders the same bookmarks from its ViewModel.

What to check

The verification covers the old binding being cleared and the recreated view receiving the expected list. Report any lifecycle paths the test cannot observe.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Why clear the binding in onDestroyView?

The binding references the Fragment's current view hierarchy. The Fragment itself can survive the destruction of that hierarchy.

Related skills from this repository

  • Claude Code Android Kotlin Skill for Compose StateFlow Loading
Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯