Android XML & View System

0•

Guides modern Android View system implementation, RecyclerView performance patterns, and seamless Jetpack Compose interoperability.

This skill provides production-grade architectural guidance and strict rules for Android codebases using the traditional XML View system and hybrid Compose integrations. It enforces best practices for ViewBinding, ListAdapter with DiffUtil, view state restoration across lifecycle events, and hierarchy optimization via ConstraintLayout. Critically, it prevents common silent bugs when hosting ComposeView inside XML layouts, such as memory leaks from incorrect disposal strategies, missing app themes, and stale ViewHolder click handling.

주요 기능

01Prevents state divergence during rotation by managing view IDs and saveEnabled flags
02Enforces efficient RecyclerView implementations using ListAdapter and DiffUtil payloads
03Safely integrates ComposeView into legacy XML View hierarchies and Fragments
040 GitHub stars
05Optimizes XML layouts and removes nested measurement passes with ConstraintLayout
06Ensures leak-free CoordinatorLayout behaviors and lifecycle-aware ViewBinding patterns

사용 사례

01Migrating legacy XML-based Android screens incrementally to Jetpack Compose
02Fixing RecyclerView click lag, stale item actions, image flickers, or scroll reset bugs
03Optimizing deep layout hierarchies and resolving lifecycle-related state restoration leaks