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

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

หน้าจอขนาดใหญ่

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

ตัวบ่งชี้ตำแหน่ง
ส่วนโค้งของตัวบ่งชี้จะสูง 50 dp เสมอ (ไม่ปรับขนาดตามสัดส่วน) ซึ่งหมายความว่ามีเพียงองศาเท่านั้นที่จะเปลี่ยนแปลงเมื่อคุณปรับขนาด
คุณสามารถปรับระยะขอบให้เหลือ 2 dp ด้วยตนเองเพื่อให้ตรงกับ SysUI ความสูงจะยังคงอยู่ที่ 50 dp

ตัวบ่งชี้การควบคุม/RSB
ส่วนโค้งของตัวบ่งชี้จะสูง 76 dp เสมอ (ไม่ปรับขนาดตามสัดส่วน) ซึ่งหมายความว่ามีเพียงองศาเท่านั้นที่จะเปลี่ยนแปลงเมื่อคุณปรับขนาด
คุณทําสิ่งต่อไปนี้ได้
- ปรับระยะขอบให้เหลือ 2 dp ด้วยตนเองเพื่อให้ตรงกับ SysUI ความสูงจะยังคงอยู่ที่ 50 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,["# Position indicator\n\nThe [PositionIndicator](/reference/kotlin/androidx/wear/compose/material/package-summary#PositionIndicator(androidx.compose.foundation.ScrollState,androidx.compose.ui.Modifier,kotlin.Boolean)) component displays the user's location in a list or range value. \nUse position indicators in list or for other contexts when you can use the rotating side button (RSB) to scroll, adjust settings, control volume, or do other actions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAnatomy\n-------\n\nA. Track \nB. Indicator\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nUsage\n-----\n\nSee the following examples of position indicators.\n\nLarge screens\n-------------\n\n### **Responsive behavior**\n\nThe position indicator will remain the same size across screen sizes, this means the angle of the curve will change slightly to match.\n\n**Position indicator**\n\nThe arc of the indicator is always 50 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\n\nIt's possible to manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n\n**Control/RSB indicator**\n\nThe arc of the indicator is always 76 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\nIt's possible to:\n\n- Manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n- Have the indicator sit on the left or right side of the screen."]]