การช่วยเหลือพิเศษใน Jetpack Compose
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การพัฒนาโดยคำนึงถึงความพร้อมใช้งานหมายถึงการทำให้แอปของคุณใช้งานได้สำหรับทุกคน รวมถึงผู้ที่มีข้อกำหนดด้านการช่วยเหลือพิเศษซึ่งอาจใช้อุปกรณ์ Android ในหลายๆ วิธี Compose เป็นรากฐานในการสร้าง UI ที่เข้าถึงได้ง่ายขึ้นด้วย API แบบประกาศสิ่งที่ต้องการและเครื่องมือที่ช่วยให้แอปของคุณเข้าถึงได้ง่ายขึ้น
แนวคิดหลักและแนวคิดสนับสนุนในการช่วยเหลือพิเศษของ Compose มีดังนี้
- ค่าเริ่มต้นของ API: ดูวิธีที่ Compose จัดการการช่วยเหลือพิเศษโดยค่าเริ่มต้น และวิธีใช้ประโยชน์จากความหมายและรูปแบบเพื่อรองรับการช่วยเหลือพิเศษตั้งแต่เริ่มต้น รวมถึงใช้กับคอมโพเนนต์ที่กําหนดเอง
- Semantics: ทําความเข้าใจระบบการนําเสนอความหมายและบทบาทขององค์ประกอบ UI สําหรับบริการการช่วยเหลือพิเศษ และวิธีเลือก Semantics ที่เหมาะสมเพื่อแสดงพร็อพเพอร์ตี้ เช่น ประเภทเนื้อหา คําอธิบาย และสถานะ
- แก้ไขลำดับการส่งผ่าน: แก้ไขลำดับที่บริการการช่วยเหลือพิเศษไปยังองค์ประกอบต่างๆ บนหน้าจอ ซึ่งสามารถปรับแต่งเพื่อให้ผู้ใช้ได้รับประสบการณ์การใช้งานที่ดียิ่งขึ้น
- การผสานและการล้าง: ทําความเข้าใจกลยุทธ์และ API ในการผสานและล้างความหมาย รวมถึงกรณีที่ควรซ่อนความหมายจากบริการการช่วยเหลือพิเศษ
- ตรวจสอบและแก้ไขข้อบกพร่อง: ตรวจสอบความหมายของการช่วยเหลือพิเศษของคอมโพสิเบิลด้วยเครื่องมือและแก้ไขข้อบกพร่องของลักษณะการทำงานที่ไม่คาดคิดเมื่อใช้เทคโนโลยีความช่วยเหลือพิเศษของ Android
- การทดสอบ: ตรวจหาปัญหาด้านการช่วยเหลือพิเศษที่พบได้ทั่วไปและทำให้บางแง่มุมของการทดสอบเป็นแบบอัตโนมัติด้วยการตรวจสอบการช่วยเหลือพิเศษของ Compose
แหล่งข้อมูลเพิ่มเติม
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# Accessibility in Jetpack Compose\n\nDeveloping with accessibility in mind means making your apps usable for\neveryone, including people with accessibility needs, who may use Android devices\nin many different ways. Compose provides a foundation for building more\naccessible UIs with its declarative APIs and tools that help make your apps\nmore inclusive.\n\nThere are several key and supporting concepts in Compose accessibility:\n\n- [**API defaults**](/develop/ui/compose/accessibility/api-defaults): Learn how Compose handles accessibility by default and how to leverage semantics and patterns to support accessibility from the start, and use them for custom components.\n- [**Semantics**](/develop/ui/compose/accessibility/semantics): Understand the system of representing the meaning and role of UI elements for accessibility services, and how to choose appropriate semantics to represent properties like content types, descriptions, and states.\n- [**Modify traversal order**](/develop/ui/compose/accessibility/traversal): Modify the order in which accessibility services navigate through elements on screen, which can be customized for better user experience.\n- [**Merging and clearing**](/develop/ui/compose/accessibility/merging-clearing): Understand semantic merging and clearing strategies and APIs, and when it is appropriate to hide semantics from accessibility services.\n- [**Inspect and debug**](/develop/ui/compose/accessibility/inspect-debug): Inspect your composables' accessibility semantics with tools and debug unexpected behaviors when using Android's assistive technologies.\n- [**Testing**](/develop/ui/compose/accessibility/testing): Detect common accessibility issues and automate some aspects of testing with Compose accessibility checks.\n\n| **Important:** For more information about accessibility in Android generally, see the [accessibility guides](/guide/topics/ui/accessibility).\n\nAdditional resources\n--------------------\n\n- **[Accessibility in Jetpack Compose codelab](/codelabs/jetpack-compose-accessibility):** Codelab for learning more about supporting accessibility in Compose.\n- **[What's new in accessibility for developers](https://www.youtube.com/watch?v=6LsaP6oKxMY):** IO '22 talk.\n- **[Build accessible apps](/guide/topics/ui/accessibility):** Essential concepts and techniques common to all Android app development.\n- **[Make apps more accessible](/guide/topics/ui/accessibility/apps):** Key steps you can take to make your app more accessible.\n- **[Principles for improving app\n accessibility](/guide/topics/ui/accessibility/principles):** Key principles to keep in mind when working to make your app more accessible.\n- **[Testing for Accessibility](/guide/topics/ui/accessibility/testing):** Testing principles and tools for Android accessibility."]]