移动开发

android-jetpack-compose

thebushidocollective/han

Use when building Android UIs with Jetpack Compose, managing state with remember/mutableStateOf, or implementing declarative UI patterns.

  • 2208 次安装
  • 200 星标
  • 收录于

安装命令

npx skills add https://github.com/thebushidocollective/han --skill android-jetpack-compose

SKILL.md

Android - Jetpack Compose

Modern declarative UI toolkit for building native Android interfaces.

Key Concepts

State Management

Compose provides several ways to manage state:

  • remember: Survives recomposition
  • rememberSaveable: Survives configuration changes
  • mutableStateOf: Creates observable state
  • derivedStateOf: Computed state that updates when dependencies change
@Composable
fun Counter() {
    var count by remember { mutableStateOf(0) }