SDK Android XR hiện đã có trong Bản dùng thử cho nhà phát triển. Chúng tôi rất mong nhận được ý kiến phản hồi của bạn! Hãy truy cập vào trang hỗ trợ của chúng tôi để liên hệ.
Thiết kế cho các ứng dụng khác biệt trên Android XR
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 XR hỗ trợ các ứng dụng ở nhiều giai đoạn phát triển. Công cụ này được xây dựng để giảm thiểu nỗ lực mà nhà phát triển cần thực hiện để tạo một ứng dụng cho nhiều nền tảng và kiểu dáng.
Android XR tự động chạy các ứng dụng Android tương thích được thiết kế cho màn hình lớn và màn hình di động. Với một vài điểm điều chỉnh, bạn có thể chuyển đổi ứng dụng này thành một ứng dụng khác biệt nếu muốn mang đến trải nghiệm sống động hơn.
Ứng dụng di động tương thích với XR
Một ứng dụng di động hiện có chưa được sửa đổi để thích ứng với màn hình lớn hoặc bất kỳ kiểu dáng nào khác. Loại ứng dụng này tự động tương thích với Android XR miễn là không yêu cầu bất kỳ tính năng nàokhông được hỗ trợ, chẳng hạn như điện thoại. Người dùng có thể hoàn tất các luồng tác vụ quan trọng. Các bản cập nhật này sẽ tự động được cung cấp trên Cửa hàng Play.
Ứng dụng màn hình lớn tương thích với XR
Ứng dụng Android màn hình lớn Cấp 1 hoặc Cấp 2 đã triển khai tính năng tối ưu hoá bố cục cho tất cả kích thước màn hình và cấu hình thiết bị (ví dụ: màn hình lớn ngoài thiết bị di động), cùng với việc tăng cường hỗ trợ cho các thiết bị đầu vào bên ngoài và tính năng đa nhiệm. Các bản cập nhật này sẽ được tự động cung cấp trên Cửa hàng Play.
Ứng dụng XR khác biệt
Ứng dụng có tính năng đặc trưng cho XR có trải nghiệm người dùng được thiết kế rõ ràng cho XR và triển khai các tính năng chỉ được cung cấp trên XR. Bạn có thể tận dụng tối đa các tính năng của Android XR và tạo sự khác biệt cho trải nghiệm của ứng dụng bằng cách thêm các tính năng XR như bảng điều khiển không gian hoặc nội dung XR như video 3D.
Thiết kế ứng dụng Android XR khác biệt
Khi chạy ở chế độ Toàn không gian, ứng dụng XR có thể sử dụng các tính năng để tạo cảm giác hiện diện và mức độ tương tác sâu hơn. Để tận dụng canvas vô hạn, hãy cân nhắc thêm các phần tử sau:
Mở rộng ứng dụng của bạn trên không gian của người dùng mà không bị ràng buộc. Người dùng có thể di chuyển các bảng điều khiển để có trải nghiệm phù hợp với bản thân.
Xác định những khoảnh khắc chính mà các tính năng không gian sẽ cải thiện trải nghiệm người dùng và khai thác các tính năng độc đáo của XR.
Thêm các tín hiệu hình ảnh rõ ràng để người dùng có thể nhanh chóng chuyển đổi giữa chế độ Toàn không gian và Không gian chính. Ví dụ: bạn có thể sử dụng biểu tượng thu gọn nội dung và mở rộng nội dung cho các nút để kích hoạt hiệu ứng chuyển đổi.
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-07-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# Design for Android XR differentiated apps\n\nAndroid XR supports apps in different stages of development. It's built to\nminimize the effort it takes for a developer to create an app for multiple\nplatforms and form factors.\n\nAndroid XR automatically runs compatible Android apps designed for mobile and\nlarge screens. With a few adaptations, you can convert it to a differentiated\napp if you want to make it feel more immersive.\n\n\n**XR compatible mobile app**\n\nAn existing [mobile](/design/ui/mobile) app that hasn't been\nmodified to adapt to a large screen or any other form factor. This type of app\nis automatically compatible with Android XR as long as it doesn't\n[require any features](/guide/topics/manifest/uses-feature-element)\nthat are [unsupported](/develop/xr/get-started#app-manifest), such\nas telephony. Users can complete critical task flows. They are automatically\nmade available on the Play Store.\n\n**XR compatible large screen app**\n\nA large screen\n[Tier 1](/docs/quality-guidelines/large-screen-app-quality#large_screen_differentiated)\nor [Tier 2](/docs/quality-guidelines/large-screen-app-quality#large_screen_optimized)\nAndroid app that has implemented layout optimizations for all screen sizes and\ndevice configurations (for example, large screens in addition to mobile), along\nwith enhanced support for external input devices and multitasking. They are\nautomatically made available on the Play Store.\n\n**XR differentiated app**\n\nAn XR differentiated app has a user experience explicitly designed for XR, and\nit implements features that are only offered on XR. You can take full advantage\nof Android XR capabilities and differentiate your app's experiences by adding XR\nfeatures like spatial panels or XR content such as a 3D video.\n\n\u003cbr /\u003e\n\nDesign Android XR differentiated apps\n-------------------------------------\n\nWhen running in Full Space, your XR app can use features to create a sense of\npresence and deeper level of engagement. To take advantage of the infinite\ncanvas, consider adding the following elements:\n\n\n[Spatial panels](/design/ui/xr/guides/spatial-ui)\n\nExpand your app across a user's space without constraints. Users can move\npanels for a personalized experience. \n\nAlas, your browser doesn't support HTML5 video. That's OK! You can still [download the video](/static/videos/design/ui/xr/xr-3d-content-opt.mp4) and watch it with a video player.\n\n[3D models](/design/ui/xr/guides/3d-content)\n\nEncourage hands-on learning and exploration with 3D models that users\ncan rotate, resize, and move. \n\n[Spatial environments](/design/ui/xr/guides/environments)\n\nTransport users to a new space and heighten focus with custom-built\nimmersive scenes.\n\n\u003cbr /\u003e\n\nTips to get started quickly\n---------------------------\n\n- Customize your app UI however you like, just like on Android.\n- Follow Material Design's [large-screen guidelines](/docs/quality-guidelines/large-screen-app-quality) to ensure apps look and function correctly at any size.\n- Follow Android XR [visual design](/design/ui/xr/guides/visual-design) recommendations for typography, colors, and [motion](/design/ui/xr/guides/motion). Consider using [Material Design components](https://m3.material.io/components) to make your app feel native to the platform.\n- Identify key moments where spatial features will improve the user experience and unlock the unique capabilities of XR.\n- Add clear visual cues to let users quickly switch between Full Space and Home Space. For example, you can use [collapse content](https://fonts.google.com/icons?icon.query=collapse+content) and [expand content](https://fonts.google.com/icons?icon.query=expand+content) icons for buttons to trigger transitions."]]