اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
وحدة تحكّم دوّارة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
وحدة التحكّم الدوّارة هي مقبض وأزرار محيطة به في وحدة التحكّم المركزية في
السيارة، وتُستخدَم للتحكّم في الوحدة الرئيسية. يجب أن يتيح جهاز التحكّم الدوراني الوظائف التالية:
- دفع المحتوى في أربعة اتجاهات (الأعلى والأسفل واليسار واليمين)
- التدوير في اتجاه عقارب الساعة وعكسها
- الزر الأوسط
- زر الرجوع
قد يتيح جهاز التحكّم الدوار تحريك العناصر بشكل قطري. يجب أن يكون العرض بدون حدود مع
الاستراحة (النقرات). يمكن أن يكون هناك زر في المنتصف أو يمكن أن يعمل المقبض الدوّار نفسه
كزر. عادةً ما تكون هناك أزرار إضافية حول المقبض الدوّار،
مثل "الصفحة الرئيسية" و"الوسائط" و"الهاتف" و"التنقّل" (الخريطة).
تعمل وحدة التحكّم الدوّارة على النحو التالي:
- تُستخدَم ميزة "الدفعة الصغيرة" لإجراء تنقّل خشن في واجهة المستخدم. تتم مشاركة الشاشة
إلى عدة مناطق مستطيلة تُعرف باسم
FocusAreas
.
يؤدي النقر إلى التنقّل بين هذه FocusAreas
.
- يُستخدَم التدوير للتنقّل بدقة. يتيح لك التدوير التنقّل في
طرق العرض التي يمكن التركيز عليها في
FocusArea
بالترتيب نفسه الذي يتيح لك مفتاح التبويب.
- يؤدي الزر الأوسط إلى اتّخاذ إجراء في العرض الذي يتم التركيز عليه، على سبيل المثال الضغط على زر.
- يعمل زر الرجوع عادةً كالمعتاد في Android، باستثناء التلاعب المباشر الموضّح أدناه.
يضمن سجلّ الإشعارات التلقائية أنّ النقر على اليمين ثم على اليسار يعيدك إلى حيث كنت.
ويمكن للمصنّع الأصلي للجهاز ضبط ذلك.
عند ضبطه من قِبل المصنّع الأصلي للجهاز، يؤدي محاولة التمرير سريعًا من حافة الشاشة إلى تنفيذ
إجراء على مستوى النظام، مثل الرجوع.
إذا حدث التفاعل الأخير من خلال اللمس بدلاً من وحدة التحكّم الدوّارة، يؤدي أي دفع أو دوران أو الضغط على الزر الأوسط إلى بدء الوضع الدوّار من خلال التركيز على عرض، ولكن يتم تجاهل ذلك عادةً. تعمل الإجراءات اللاحقة على النحو الموضّح أعلاه، من خلال نقل التركيز أو
اتّخاذ إجراء.
إذا تم التركيز على SeekBar
عند الضغط على الزر الأوسط، يبدأ وضع
المعالجة المباشرة (DM). في هذا الوضع، يؤدي التدوير إلى التحكّم في
SeekBar
بدلاً من التنقّل. يُستخدَم زر الرجوع للخروج من وضع المحادثة المباشرة.
يمكن استخدام طرق الدفع الأخرى التي تتيح وضع "العرض على الشاشة" لتحريك المحتوى أو تدويره.
على سبيل المثال، يمكن أن تستخدم طريقة عرض الخريطة التدوير للتكبير والتصغير والدفع لتحريك الخريطة (الانتقال).
لمزيد من المعلومات، يُرجى الاطّلاع على:
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Rotary controller\n\nA *rotary controller* is a knob and surrounding buttons in the center console of\nan automobile used to control the head unit. A rotary controller must support these functions:\n\n- Nudge in four directions (up, down, left, and right)\n- Rotate clockwise and counterclockwise\n- Center button\n- Back button\n\nA rotary controller might support diagonal nudges. Rotation must be limitless with\ndetents (clicks). There can either be a button in the center or the rotary knob itself\ncan act as a button. There are typically additional buttons surrounding the rotary knob,\nfor example, Home, Media, Phone, and navigation (map).\n\nA rotary controller works like this:\n\n- Nudging is used for *coarse* navigation in the user interface. The screen is partitioned into several rectangular regions, referred to as `FocusAreas`. Nudging navigates between these `FocusAreas`.\n- Rotation is used for *fine* navigation. Rotation navigates through the focusable views in a `FocusArea` in the same order as the Tab key.\n- Center button takes action on the focused view, for example to press a button.\n- Back button typically functions as usual in Android, an exception being [direct manipulation](#dm), described below.\n\nNudge history ensures that nudging right and then left takes you back where you were.\nThis can be configured by the OEM.\n\nWhen configured by the OEM, attempting to nudge off the edge of the screen triggers a\nsystem-wide action, for example Back.\n\nIf the most recent interaction took place through touch rather than the rotary controller,\nany nudge, rotate, or press of the Center button starts rotary mode by focusing a view, but\nis typically ignored. Subsequent actions function as described above, moving focus or\ntaking action.\n\nIf a `SeekBar` is focused when the Center button is pressed,\n*direct manipulation (DM)* mode starts. In this mode, rotation manipulates the\n`SeekBar` rather than navigating. The Back button is used to exit DM mode.\nOther views that support DM mode can use nudging as well as rotation to manipulate the view.\nFor example, a map view can use rotation to zoom and nudging to pan (scroll) the map.\n\nTo learn more, see:\n\n- [Develop apps](/docs/automotive/hmi/rotary_controller/app_developers)\n- [Develop apps\n without the Car UI library](/docs/automotive/hmi/rotary_controller/app_developers_no_carui)\n- [Integration guide for OEMs](/docs/automotive/hmi/rotary_controller/oem_integration)"]]