القيم العالمية القابلة للتكوين

استخدم الموارد المتوفرة في هذه المقالة لتخصيص برنامج الاتصال. ستستخدم وجهات النظر المختلفة الموارد المعاد توجيهها من القيم العالمية. لمزيد من المعلومات، راجع تصميم AOSP UX (قد يتطلب تسجيل الدخول).

حركة إدخال لوحة الاتصال

<!-- Boolean config to gate the dialpad input motion -->
<bool name="config_enable_dial_motion">true</bool>
<!-- Font scale for the last input digit -->
<item name="config_dial_motion_scale_start" format="float" type="integer">1.5</item>
<!-- Scale down motion duration for the last input digit -->
<integer name="config_dial_motion_duration">200</integer>

خطورة أرقام الإدخال في Dialpad

<!-- 8388629 stands for Gravity.END |
Gravity.CENTER_VERTICAL-->
<integer name="config_dialed_number_gravity">8388629</integer>

ملف تعريف المستخدم مفصل

التكوين لعرض ملف تعريف مستخدم مفصل عند العثور على جهة اتصال مطابقة لرقم الإدخال. عندما يكون خطأ، قم بعرض اسم جهة الاتصال فقط . عندما يكون صحيحًا، قم بعرض الصورة الرمزية لجهة الاتصال واسم جهة الاتصال وتسمية رقم الهاتف.

<bool name="config_show_detailed_user_profile_on_dialpad">false</bool>

صورة الخلفية ألفا

عند التعيين على 0، تكون صورة الخلفية غير مرئية.

<!-- Alpha when there is a contact avatar -->
<item name="config_background_image_alpha" format="float"
type="dimen">1.0</item>
<!-- Alpha when there are no contact avatars and uses the letter tile drawable color as background. -->
<item name="config_background_image_error_alpha" format="float" type="dimen">1.0</item>

أزرار الإجراءات الموجودة على صفحتي "الحديثة" و"جهات الاتصال".

<!-- A config determines whether to show divider and callog_action_button for callog items that
are not stored as contacts. "true" will show divider and button as disable state and "false" will
make divider and button invisible for non contacts. -->
    <bool name="config_show_calllog_action_button_for_non_contact">false</bool>

<!-- A config determines whether to show divider and the button on the right side for contacts
without any contact details. "true" will show divider and button as disable state and "false" will
make divider and button invisible for empty contacts. -->
    <bool name="config_show_contact_detail_button_for_empty_contact">false</bool>

عنوان البوابة وميزة التنقل في صفحة تفاصيل الاتصال

استخدم هذا التكوين المنطقي لبوابة العنوان وميزة التنقل في صفحة تفاصيل الاتصال.

<!-- A config determines whether to show postal address in contact details page. -->
<bool name="config_show_postal_address">false</bool>

شريط الأدوات في صفحة تفاصيل الاتصال

<!-- A config determines whether to show the action bar view in the contact details page.-->
<bool name="config_show_contact_details_action_bar_view">false</bool>
<!-- A config determines if to show the action bar avatar in the contact details page.-->
<bool name="config_show_contact_details_action_bar_avatar">true</bool>

وضع عنوان شريط الأدوات

التكوين لوضع عنوان شريط الأدوات:

  • 0 يشير إلى اسم التطبيق.
  • 1 يشير إلى عدم وجود عنوان لشريط الأدوات.
  • 2 يشير إلى اسم جهاز Bluetooth المتصل.
<!-- Use app name as toolbar title. Supported value see @attr/toolbarTitleMode -->
<integer name="config_toolbar_title_mode">0</integer>

ملء الشاشة في واجهة المستخدم

بوابة التكوين لواجهة مستخدم الاتصال بملء الشاشة. عند التعيين على "صحيح"، يؤدي الرد على مكالمة واردة إلى عرض واجهة المستخدم الخاصة بالمكالمة بملء الشاشة بغض النظر عن مستخدم Dialer. عند التعيين على "خطأ"، يؤدي الرد على مكالمة واردة إلى رفض HUN دون عرض واجهة مستخدم الاتصال بملء الشاشة عندما لا يكون المستخدم في Dialer.

<bool name="config_show_fullscreen_incall_ui">true</bool>

الزاوية الرمزية

يؤثر تغيير هذه القيمة على جميع أشكال الصور الرمزية، بما في ذلك الصورة الرمزية للإشعارات:

  • 0.5 يدل على الصورة الرمزية المستديرة.
  • 1 يدل على الصورة الرمزية المربعة.
<dimen name="contact_avatar_corner_radius_percent" format="float">0.5</dimen>

حجم الصورة الرمزية المستخدمة لعناصر القائمة

استخدم هذا التكوين لتعيين حجم الصورة الرمزية لعناصر القائمة في هذه الصفحات:

  • صفحة سجل المكالمات
  • صفحة جهات الاتصال
  • صفحة البحث
  • الصورة الرمزية للملف الشخصي على صفحة Dialpad
<dimen name="avatar_icon_size">76dp</dimen>

نتيجة بحث مباشرة عندما يتصل المستخدم باستخدام Dialpad

<!-- A config determines whether to show type down list on Dialpad -->
<bool name="config_show_type_down_list_on_dialpad">true</bool>

ارتفاع شريط التحكم

قم بتعيين ارتفاع شريط التحكم في المكالمات الجارية وارتفاع شريط التحكم في المكالمات الواردة وارتفاع زر الاتصال.

<dimen name="control_bar_height">96dp</dimen>

أبعاد عنصر القائمة

<dimen name="list_item_height">116dp</dimen>