Android Developers
Platform Android Studio Google Play Jetpack Kotlin Docs Games
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
  • Jetpack
概览 Tutorial 示例 指南 For teams
Android Developers
  • Platform
  • Android Studio
  • Google Play
  • Jetpack
    • 概览
    • Tutorial
    • 示例
    • 指南
    • For teams
  • Kotlin
  • Docs
  • Games
  • Introduction
    • Documentation
    • Why Compose
    • Quick start
    • Thinking in Compose
    • Bill of Materials
      • Using the Bill of Materials
      • BOM to library version mapping
  • UI architecture
    • Lifecycle
    • Side-effects
    • Phases
    • Managing state
      • Overview
      • Where to hoist state
      • Save UI state
    • Architecture
    • Architectural layering
    • CompositionLocal
    • Navigation
  • Develop your app's layout
    • Overview
    • Layout basics
    • Modifiers
    • List of modifiers
    • Pager
    • Custom layouts
    • Build adaptive layouts
    • Alignment lines
    • Intrinsic measurements
    • ConstraintLayout
  • Components
    • Material Components and layouts
    • Lists and grids
    • Resources
  • Theming
    • Overview
    • Material Design 3
    • Migrate from Material 2 to Material 3
    • Material Design 2
    • Custom theming
    • Anatomy of a theme
    • Migrating XML themes to Compose
  • Text and typography
    • Text
  • Images and graphics
    • Overview
    • Images
      • Overview
      • Loading images
      • ImageBitmap vs ImageVector
      • Material icons
      • Customize an image
      • Custom painter
      • Optimizing performance
    • Graphics
      • Overview
      • Graphics Modifiers
      • Brush
    • Animation
      • Overview
      • Animation modifiers and composables
      • Value-based animations
      • Customize animations
      • Animated vector drawables
      • Test animations
      • Tooling
      • Advanced animation example
      • Additional resources
  • Accessibility
    • Semantics
    • Accessibility
  • Touch and input
    • Overview
    • Gestures
    • Handling interactions
  • Performance
    • Overview
    • Tooling
      • Overview
      • Layout Inspector
      • Tracing
    • Best practices
  • Best practices
    • Kotlin for Compose
    • Developer ergonomics
  • UI testing
    • Testing
    • Testing cheat sheet
  • Migrate to Compose
    • Overview
    • Migration strategy
    • Interoperability APIs
      • Overview
      • Using Compose in Views
      • Using Views in Compose
    • Other considerations
    • Adopt Compose for teams
    • Compose and other libraries
  • Tooling
    • Overview
    • Android Studio support for Compose
    • Relay designer and developer tooling
      • Overview
      • Install Relay
      • Set up your Android project
      • Basic tutorial
        • Overview
        • Create UI Package in Figma
        • Convert the designs to code in Android Studio
        • Make and propagate design updates
        • Content parameters
      • Advanced tutorial
        • Overview
        • Handling design variants
        • Content parameters
        • Add interaction handlers to designs
      • Relay workflow
        • Overview
        • Create UI Packages
        • Add parameters
        • Check errors
        • Share UI Packages
        • Android Studio workflow
        • Understand UI Package & generated code
      • Design-to-code translation details
        • Figma Component Properties
        • Children parameters
        • Nested package instances
        • Vector graphics
        • Multiple styles in text
        • Absolute positioning within auto layout
        • Fill color
        • Effects
      • Limitations & troubleshooting
      • Experimental features
        • Mapping styles to Compose theme
        • Mapping components to existing code
        • Mapping components tutorial
          • Overview
          • 1-to-1 mapping
          • Mapping with variants
      • Releases
  • Jetpack Compose
  • Jetpack
  • 指南

测试备忘单

Compose 测试备忘单是一些最实用的 Compose 测试 API 的快速参考。备忘单也可以下载 PDF 格式。

实用的 Compose 测试 API

本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。

最后更新时间 (UTC):2022-07-12。

  • 微信 微信
    在微信上关注“Google Developers”
  • Twitter Twitter
    在 Twitter 上关注 @AndroidDev
  • YouTube YouTube
    在 YouTube 上访问“Android Developers”频道
  • 关于 Android

    • Android
    • Enterprise
    • 安全
    • 源代码
  • 支持

    • 报告平台错误
    • 报告文档错误
    • Google Play support
    • 参加调查研究
  • 文档

    • 开发者指南
    • 设计指南
    • API 参考
    • 示例
    • Android Studio
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • 所有产品
  • 隐私权政策
  • 许可
  • 品牌指南
  • ICP证合字B2-20070004号
  • 通过电子邮件接收资讯和提示 订阅
  • English
  • Bahasa Indonesia
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어