การนำทาง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ท่าทางสัมผัสบนหน้าจอเป็นวิธีหลักในการไปยังส่วนต่างๆ ในแอป Wear OS ผู้ใช้จะไปยังส่วนต่างๆ ได้โดยเลื่อน ปัด และแตะที่หน้าจอ ดูข้อมูลเพิ่มเติมเกี่ยวกับการใช้การปัดเพื่อปิดโดยใช้ Compose สำหรับ Wear OS ได้ที่การปัดเพื่อปิด
ปัดเพื่อปิด
อุปกรณ์ Wear OS ใช้ท่าทางสัมผัสด้วยการปัดจากซ้ายไปขวาเพื่อปิดมุมมองปัจจุบันและกลับไปที่มุมมองก่อนหน้าแทนปุ่มย้อนกลับ
การปัดจากซ้ายไปขวาเป็นวิธีหลักในการปิดแอป การวางแนวการนำทางทั้งหมดไว้บนแกนแนวตั้งและหลีกเลี่ยงภาพสไลด์แนวนอนเมื่อออกแบบสำหรับ Wear OS
หากแอปต้องใช้มุมมองที่เลื่อนได้ เช่น Google Maps ให้ใช้เกณฑ์การลากขอบที่ขอบด้านซ้ายของหน้าจอเพื่อจำกัดท่าทางสัมผัสให้เป็นการปัดที่เริ่มต้นภายในเกณฑ์ขอบ
ใช้ SwipeDismissFrameLayout เพื่อใช้ลักษณะการปัดเพื่อปิด
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# Navigation\n\nScreen gestures are a primary means of navigation in Wear OS apps. Users\nnavigate by scrolling, swiping, and tapping the screen. For more information\nabout implementing swipe to dismiss using Compose for Wear OS, see\n[Swipe to dismiss](/training/wearables/compose/swipe-to-dismiss).\n\nSwipe to close\n--------------\n\nInstead of back buttons, Wear OS devices use left-to-right swipe gestures to\nclose the current view and go back to the previous view.\n\nThe left-to-right swipe is the primary way to close an app. Keep all navigation\nnot intended to close the app to a vertical axis and avoid horizontal carousels\nwhen designing for Wear OS.\n\nIf your app requires a pannable view, like Google Maps, use an edge-drag\nthreshold on the left screen edge to limit the gesture to swipes that start\nwithin the edge threshold.\n\nUse\n[SwipeDismissFrameLayout](/reference/androidx/wear/widget/SwipeDismissFrameLayout)\nto implement the swipe to close behavior."]]