ปุ่ม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

ใช้คอมโพเนนต์ปุ่มสําหรับการดําเนินการที่ผู้ใช้เข้าใจดีและไม่จำเป็นต้องมีป้ายกำกับข้อความ ปุ่มจะแตกต่างจากชิปตรงที่เป็นทรงกลม
กายวิภาคศาสตร์
ก. เนื้อหา
ปุ่มมีช่องเดียวที่สงวนไว้สำหรับไอคอนหรือข้อความ เลือกไอคอนที่เกี่ยวข้องกับการดำเนินการของปุ่ม คุณใช้ข้อความได้สูงสุด 3 อักขระหากไอคอนไม่สามารถอธิบายการดำเนินการที่เกี่ยวข้อง ลองใช้คอมโพเนนต์ชิปหากไอคอนอธิบายการดำเนินการได้ไม่ดี
ข. คอนเทนเนอร์
คอนเทนเนอร์ปุ่มจํากัดไว้ที่การเติมสีพื้นสีเดียว

ปุ่มเปิด/ปิด
ปุ่มเปิด/ปิดช่วยให้ผู้ใช้สลับระหว่าง 2 สถานะได้

ปุ่มแบบกะทัดรัด
ปุ่มแบบกะทัดรัดจะปรากฏเล็กกว่า แต่มีพื้นที่ที่แตะได้ใหญ่กว่า พื้นที่ที่แตะได้เริ่มต้นคือ 48x48 dp
ลำดับชั้น
ใช้การเติมสีที่แตกต่างกันเพื่อระบุลําดับชั้นของปุ่ม
เน้นสูง
ปุ่มเน้นสูงมีการดำเนินการหลักของแอป สำหรับปุ่มเน้นสูง ให้ใช้สีหลักหรือสีรองสำหรับคอนเทนเนอร์ และใช้สีในโหมดหลักและโหมดรองสำหรับเนื้อหา ดูข้อมูลเพิ่มเติมได้ที่ธีม Material ของ Wear
การเน้นปานกลาง
ปุ่มเน้นระดับกลางจะโดดเด่นด้วยสีที่เติมซึ่งคอนทราสต์น้อยกว่า เหตุการณ์เหล่านี้มีการกระทําที่มีความสําคัญน้อยกว่าการกระทําหลัก ใช้สีพื้นผิวสำหรับคอนเทนเนอร์และสีบนพื้นผิวสำหรับเนื้อหา
หรือจะใช้คอมโพเนนต์ OutlinedButton ที่กําหนดเองสําหรับปุ่มเน้นระดับกลางก็ได้ รูปภาพนี้มีพื้นหลังโปร่งใส เส้นสีของตัวแปรหลักที่มีความทึบแสง 60% และเนื้อหาสีหลัก
เน้นต่ำ (ไอคอนเท่านั้น)
ปุ่มที่มีความสำคัญต่ำจะสังเกตได้จากการไม่มีเส้นขอบ หน้าปัดประเภทนี้เหมาะสําหรับพื้นที่ขนาดเล็กบนหน้าปัดซึ่งจําเป็นต้องมีการจัดเรียงแบบกะทัดรัด ใช้สีบนพื้นผิวสำหรับเนื้อหา
ขนาด
ใช้ปุ่มขนาดต่างๆ เพื่อเน้นหรือลดการเน้นการดำเนินการ

ใหญ่
ไอคอน (30 x 30 dp)
คอนเทนเนอร์ (60 x 60 dp)

ค่าเริ่มต้น
ไอคอน (26 x 26 dp)
คอนเทนเนอร์ (52 x 52 dp)

เล็ก
ไอคอน (24 x 24 dp)
คอนเทนเนอร์ (48 x 48 dp)

เล็กพิเศษ
ไอคอน (24 x 24 dp)
คอนเทนเนอร์ (32 x 32 dp)
ขอแนะนําให้เพิ่มระยะห่างจากขอบรอบปุ่มนี้เพื่อสร้างเป้าหมายการแตะที่มีขนาดอย่างน้อย 48 dp นี่คือขนาดเป้าหมายการแตะขั้นต่ำสำหรับการช่วยเหลือพิเศษ
การใช้งาน
ใช้ปุ่มมาตรฐานเพื่อให้ผู้ใช้ดำเนินการอย่างใดอย่างหนึ่งได้ เช่น ยอมรับหรือปฏิเสธสายเรียกเข้า หรือเริ่มตัวจับเวลา

ใช้ปุ่มเปิด/ปิดเพื่อให้ผู้ใช้เปิดหรือปิดตัวเลือก เช่น การเลือกและยกเลิกการเลือกวันของสัปดาห์ หรือหยุดตัวจับเวลาชั่วคราวและเริ่มอีกครั้ง

เลย์เอาต์ที่ปรับเปลี่ยนได้

ลักษณะการทํางานแบบตอบสนอง

ปุ่ม 1 ปุ่ม
ระยะห่างจากขอบภายในจะยังคงเหมือนเดิม และระยะขอบควรเป็นเปอร์เซ็นต์เพื่อไม่ให้ปุ่มยืดออกมากเกินไปและคงขนาดแบบสัมพัทธ์ไว้

ปุ่ม 2 ปุ่ม
เมื่อมีปุ่ม 2 ปุ่ม ระบบจะเพิ่มระยะขอบภายในเป็นเปอร์เซ็นต์เพื่อไม่ให้ปุ่มยืดออกมากเกินไปและคงขนาดแบบสัมพัทธ์ไว้
IME

ปุ่ม 1 หรือ 2 ปุ่ม
IME ที่มีปุ่มล็อก 2 ปุ่มหรือปุ่มเดียวจะขยายไปจนถึงขอบด้านข้างเสมอ ไม่ว่าจะมีขนาดหน้าจอเท่าใดก็ตาม

ปุ่ม 3 ปุ่ม
ในหน้าจอที่เล็กกว่า 225 dp ปุ่มจะยังคงเป็นวงกลมและไม่ยืด ในหน้าจอขนาดใหญ่กว่า 225 dp ปุ่มจะขยายไปจนถึงขอบด้านข้าง
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# Buttons\n\nUse a [Button](/reference/kotlin/androidx/wear/compose/material/package-summary#Button(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material.ButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Shape,androidx.wear.compose.material.ButtonBorder,kotlin.Function1)) component for actions that are well understood by users and don't need a text label. Buttons are distinguished from chips by their circular shape.\n\nAnatomy\n-------\n\n\n**A. Content**\n\nButtons have a single slot reserved for an icon or text. Choose an icon that is relevant to the action the button performs. You can use text with a maximum of three characters if an icon is unable to describe the relevant action. Consider the use of a Chip component if an icon cannot clearly describe the action\n\n**B. Container**\n\nButton containers are limited to a single solid color fill.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nButton types\n------------\n\n\n**Toggle buttons**\n\n[Toggle buttons](/reference/kotlin/androidx/wear/compose/material/package-summary#ToggleButton(kotlin.Boolean,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material.ToggleButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)) enable users to toggle between two states. \n\n**Compact buttons**\n\n[Compact buttons](/reference/kotlin/androidx/wear/compose/material/package-summary#CompactButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material.ButtonColors,androidx.compose.ui.unit.Dp,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)) appear smaller but have a larger tappable area. The default tappable area is 48x48 dp.\n\n\u003cbr /\u003e\n\nHierarchy\n---------\n\n\nUse different color fills to denote button hierarchy.\n\n**High emphasis**\n\nHigh emphasis buttons contain actions that are primary to the app. For high emphasis buttons use Primary or Secondary colors for the container and On Primary and On Secondary colors for the content. For more information see [Wear Material Theming](/training/wearables/design/theme).\n\n**Medium emphasis**\n\nMedium emphasis buttons are distinguished by a less contrasting color fill. They contain actions that are less important than the primary actions. Use the Surface color for the container and the On Surface color for the content.\n\nAlternatively, use the custom [OutlinedButton](/reference/kotlin/androidx/wear/compose/material/package-summary#OutlinedButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.wear.compose.material.ButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Shape,androidx.wear.compose.material.ButtonBorder,kotlin.Function1)) component for a medium emphasis button. This has a transparent background, a primary variant colored stroke of 60% opacity, and primary colored content.\n**Low emphasis (icon only)**\n\n\u003cbr /\u003e\n\nLow emphasis buttons are distinguished by having no fill. They are best suited for smaller areas on the watch face where a compact arrangement is needed. Use the On Surface colour for the content.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nSizes\n-----\n\nUse buttons of different sizes to emphasize or de-emphasize actions.\n\n\n**Large**\n\nIcon (30 x 30 dp) \nContainer (60 x 60 dp) \n\n**Default**\n\nIcon (26 x 26 dp) \nContainer (52 x 52 dp)\n\n\u003cbr /\u003e\n\n\n**Small**\n\nIcon (24 x 24 dp) \nContainer (48 x 48 dp) \n\n**Extra Small**\n\nIcon (24 x 24 dp) \nContainer (32 x 32 dp)\n\n\nIt's recommended to add additional padding around this button to create a tap target of at least 48 dp. This is our minimum tap target size for accessibility.\n\n\u003cbr /\u003e\n\nUsage\n-----\n\nUse standard buttons to enable the user to take a single action such as accepting or declining a call, or starting a timer.\n\nUse toggle buttons to allow the user to turn an option on or off, such as selecting and deselecting days of the week or pausing and restarting a timer.\n\nAdaptive layouts\n----------------\n\n### **Responsive behavior**\n\n\n**1 button**\n\nThe internal padding will remain the same, and the margins should be percentages in order to stop the buttons from stretching too far, and keeping a relative size. \n\n**2 buttons**\n\nWhen there are 2 buttons, percentage internal margins are added in order to stop the buttons from stretching too far, and keeping a relative size.\n\n\u003cbr /\u003e\n\n### **IMEs**\n\n**1 or 2 Buttons**\n\nIMEs with 2 or a single button lockup always stretch all the way to the side margins regardless of screen size.\n\n**3 Buttons**\n\nOn screens smaller than 225 dp, the buttons remain circular and do not stretch. On larger screens, 225 dp or larger, the buttons stretch all the way to the side margins."]]