การช่วยเหลือพิเศษใน Compose
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เพิ่มฟีเจอร์การช่วยเหลือพิเศษลงในแอป ซึ่งจะเปลี่ยนสิ่งที่แสดงบนหน้าจอให้เป็นรูปแบบที่เหมาะกับผู้ใช้ที่มีความต้องการเฉพาะมากขึ้น ดูวิธีเพิ่มการเข้าถึงและความหลากหลายของแอปโดยไม่ต้องทำอะไรมาก
ข้อมูลสำคัญ
- ใส่คำอธิบายองค์ประกอบภาพเพื่อให้บริการการช่วยเหลือพิเศษทราบสิ่งที่ต้องทำ ใช้ทรัพยากรสตริงที่แปลแล้วสำหรับคำอธิบายเนื้อหาเพื่อให้ผู้ใช้ได้ยินคำอธิบายในภาษาของตนเอง
- เพิ่มตัวแก้ไขความหมายลงในคอนเทนเนอร์หลักเพื่อปรับปรุงลักษณะการทํางานของบริการการช่วยเหลือพิเศษ
- หากต้องการเพิ่มการดำเนินการที่กำหนดเองลงในรายการในลิสต์ ให้กำหนดชื่อการดำเนินการตามสถานะปัจจุบัน เพิ่มตัวแก้ไขความหมาย แล้วตั้งค่าพร็อพเพอร์ตี้
customActions
และล้างความหมายเพิ่มเติม
คอลเล็กชันที่มีคู่มือนี้
คู่มือนี้เป็นส่วนหนึ่งของคอลเล็กชันคู่มือฉบับย่อที่มีการดูแลจัดการ ซึ่งครอบคลุมเป้าหมายการพัฒนา Android ที่กว้างขึ้น ดังนี้
ข้อความที่แสดง
ข้อความเป็นส่วนสําคัญของ UI ดูวิธีต่างๆ ในการนำเสนอข้อความในแอปเพื่อให้ผู้ใช้ได้รับประสบการณ์การใช้งานที่ยอดเยี่ยม
แสดงรูปภาพ
ดูเทคนิคการใช้ภาพสดใสที่ดึงดูดความสนใจเพื่อให้แอป Android ของคุณมีรูปลักษณ์ที่สวยงาม
ข้อมูลเบื้องต้นเกี่ยวกับองค์ประกอบ
ชุดวิดีโอนี้จะแนะนำ Compose API ต่างๆ โดยแสดงสิ่งที่มีให้ใช้งานและวิธีใช้อย่างรวดเร็ว
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-06 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-02-06 UTC"],[],[],null,["# Accessibility in Compose\n\n\u003cbr /\u003e\n\nAdd accessibility features to your app, transforming what's shown on screen to a\nmore fitting format for users with specific needs. See how to increase your\napp's reach and versatility with a small amount of work. \n\nKey points\n----------\n\n- Include descriptions of the visual elements so the accessibility services know what to do. Use a localized string resource for content descriptions so users can hear them in their own language.\n- Add a semantics modifier to the parent container to improve the selection behavior of the accessibility service.\n- To add a custom action to a list item: define the name of the action based on the current status, add a semantics modifier and set the [`customActions`](/reference/kotlin/androidx/compose/ui/semantics/package-summary#(androidx.compose.ui.semantics.SemanticsPropertyReceiver).customActions()) property, and clear any additional semantics.\n\nCollections that contain this guide\n-----------------------------------\n\nThis guide is part of these curated Quick Guide collections that cover\nbroader Android development goals: \n\n### Display text\n\nText is a central piece of any UI. Find out different ways you can present text in your app to provide a delightful user experience. \n[Quick guide collection](/develop/ui/compose/quick-guides/collections/display-text) \n\n### Display images\n\nDiscover techniques for using bright, engaging visuals to give your Android app a beautiful look and feel. \n[Quick guide collection](/develop/ui/compose/quick-guides/collections/display-images) \n\n### Compose basics\n\nThis series of videos introduces various Compose APIs, quickly showing you what's available and how to use them. \n[Quick guide collection](/develop/ui/compose/quick-guides/collections/compose-basics) \n\nHave questions or feedback\n--------------------------\n\nGo to our frequently asked questions page and learn about quick guides or reach out and let us know your thoughts. \n[Go to FAQ](/quick-guides/faq) [Leave feedback](https://issuetracker.google.com/issues/new?component=1573691&template=1993320)"]]