ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
การโต้ตอบการสัมผัส
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ระบบย่อยของการสัมผัสของ Android หมายถึงฟีเจอร์ฮาร์ดแวร์และซอฟต์แวร์ที่มีส่วนในการสร้างสิ่งเร้าผ่านสัมผัส การสร้างเอฟเฟกต์การสัมผัสต้องอาศัยฮาร์ดแวร์ในระดับสูง ในขณะที่การรับรู้สิ่งเร้าการสัมผัสต้องอาศัยผู้ใช้และค่ากําหนดระดับสูง ความแตกต่างนี้ทำให้ผู้ผลิตอุปกรณ์ต้องพัฒนาและเพิ่มประโยชน์ของรีแอ็กชันการสัมผัสให้แก่ผู้ใช้ในระบบนิเวศของ Android ให้ได้สูงสุด
การใช้เอฟเฟกต์การสัมผัสอย่างถูกต้องต้องใช้ฮาร์ดแวร์ที่ทันสมัยและเข้ากันได้
ผู้ใช้ต้องปรับค่ากำหนดบางอย่างเพื่อสร้างผลลัพธ์ที่ต้องการเพื่อให้รับรู้สิ่งเร้าสัมผัสได้อย่างถูกต้อง ผู้ผลิตต้องปฏิบัติตามข้อกำหนดทั้ง 2 ข้อเพื่อใช้การสัมผัสใน Android อย่างเหมาะสม
คู่มือต่อไปนี้อธิบายวิธีการปฏิบัติตามข้อกำหนดสำหรับผู้ผลิตอุปกรณ์และนักพัฒนาแอป รวมถึงให้คำแนะนำที่ชัดเจนเกี่ยวกับวิธีใช้ Android Haptics API ที่ดีที่สุด
ดูข้อมูลเพิ่มเติมเกี่ยวกับความเข้ากันได้โดยทั่วไปได้ในเอกสารนิยามความเข้ากันได้ของ Android
อ่านข้อมูลเพิ่มเติมเกี่ยวกับการใช้การสัมผัสใน Android ได้จากเอกสารประกอบสำหรับนักพัฒนาแอป Android
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 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-27 UTC"],[],[],null,["# Haptics\n\nThe Android haptics subsystem refers to hardware and software features that\ncontribute to the creation of stimuli through the sense of touch. *Creating*\nhaptic effects requires a high degree of hardware dependencies, while\n*perceiving* haptic stimuli requires a high degree of user dependencies and\npreferences. This dichotomy challenges device manufacturers to develop and\nmaximize haptic user benefits in the Android ecosystem.\n\nImplementing haptic effects correctly requires up-to-date, compatible hardware.\nFor users to properly perceive haptic stimuli, specific preferences must be\ntweaked to create the desired effects. Manufacturers must satisfy both\nrequirements to properly implement haptics on Android.\n\nThe following guides describe the compliance instructions for device\nmanufacturers and app developers, and provides clear guidance on the best use\nof the Android haptics APIs:\n\n- [**A step-by-step checklist detailing haptic SW and HW compliance**](/docs/core/interaction/haptics/haptics-implement)\n\n The checklist walks\n you through the key elements of the hardware configuration process.\n- [**A foundation for haptic framework**](/docs/core/interaction/haptics/haptics-ux-foundation)\n\n This lists the set of UX principles that Android haptic improvements are\n driven by.\n- [**An in-depth look at UX and design principles**](/docs/core/interaction/haptics/haptics-ux-design)\n\n These principles illustrate the importance of hardware compliance in\n improving the haptics UX for Android end users.\n- [**Assess hardware**](/docs/core/interaction/haptics/hardware)\n\n Learn how to assess the haptic effects implementation with the necessary\n test equipment and apply your findings to the performance map to draw\n conclusions about the performance of your device under test.\n\nTo learn more about compatibility in general, read the [Android\nCompatibility Definition Document](/docs/compatibility/11/android-11-cdd).\n\nTo learn more about using haptics in Android, read the [Android\nDeveloper Documentation](https://developer.android.com/develop/ui/views/haptics)."]]