Công cụ dành cho Compose
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Android Studio cung cấp một loạt công cụ giúp bạn đẩy nhanh quá trình thiết kế giao diện người dùng bằng cách sử dụng các thư viện Jetpack Compose. Bạn có thể bắt đầu sử dụng những công cụ đó bằng cách thêm các phần phụ thuộc cần thiết vào tệp Gradle thông qua Danh sách thành phần (BOM).
Tạo các thành phần, hệ thống thiết kế và màn hình cho phù hợp với quy cách thiết kế.
Đẩy nhanh quá trình tạo giao diện người dùng và kiểm thử ứng dụng đang chạy mà không cần chuyển đổi nhiều ngữ cảnh.
Các công cụ gỡ lỗi giao diện người dùng
Phân tích bố cục, quá trình kết hợp lại và theo dõi thành phần để cải thiện hiệu suất giao diện người dùng của ứng dụng.
- Layout Inspector: Kiểm tra bố cục của Compose trong trình mô phỏng hoặc thiết bị thực.
- Compose UI Check: Kiểm tra giao diện người dùng Compose để tìm các vấn đề về khả năng hỗ trợ tiếp cận và khả năng thích ứng.
- Theo dõi thành phần kết hợp: Theo dõi các hàm có khả năng kết hợp trong dấu vết hệ thống.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-08-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[],[],null,["# Tools for Compose\n\nAndroid Studio provides a slate of tools to help you accelerate your UI design\nusing Jetpack Compose libraries. You can get started using those tools by first\nadding the necessary dependencies to your Gradle file through the Bill of\nMaterials (BOM). \n[Quick Start\nAdd the Compose BOM and library dependencies using the quick start guide\narrow_forward](/develop/ui/compose/setup)\n\nTools for designing your UI\n---------------------------\n\nCreate components, design systems, and screens to align with design specs.\n\n- [Preview UI](/develop/ui/compose/tooling/previews): Preview, organize, and interact with composables.\n- [Preview animations](/develop/ui/compose/tooling/animation-preview): Inspect, debug, and preview animations frame by frame.\n\nTools for developing and testing your UI\n----------------------------------------\n\nAccelerate building the UI and testing the running application with less context\nswitching.\n\n- [Live Edit](/develop/ui/compose/tooling/iterative-development): Apply changes and see them in real time without doing full builds.\n- [Editor actions](/develop/ui/compose/tooling/editor-actions): Use templates, gutter icons, and more in the Android Studio editor window.\n- [Lint checks](/develop/ui/compose/tooling/lint): Verify the correctness of your Compose code with lint checks.\n\nTools for debugging your UI\n---------------------------\n\nAnalyze layout, recompositions, and composition tracing to improve your app's UI\nperformance.\n\n- [Layout Inspector](/develop/ui/compose/tooling/debug#layout_inspector): Inspect a Compose layout in an emulator or physical device.\n- [Compose UI Check](/develop/ui/compose/tooling/debug#compose_ui_check): Inspect Compose UI for accessibility and adaptive issues.\n- [Composition Tracing](/develop/ui/compose/tooling/tracing): Trace your composable functions in a system trace."]]