ค่าที่กำหนดค่าได้ทั่วโลก

ใช้ทรัพยากรที่มีให้ในบทความนี้เพื่อปรับแต่ง Dialer มุมมองที่แตกต่างกันจะใช้ทรัพยากรที่เปลี่ยนเส้นทางจากค่าส่วนกลาง สำหรับข้อมูลเพิ่มเติม โปรดดูการออกแบบ 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>

แรงโน้มถ่วงของตัวเลขที่ป้อนในแป้นกด

<!-- 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 หมายถึงชื่ออุปกรณ์บลูทูธที่เชื่อมต่อ
<!-- Use app name as toolbar title. Supported value see @attr/toolbarTitleMode -->
<integer name="config_toolbar_title_mode">0</integer>

UI การโทรแบบเต็มหน้าจอ

กำหนดค่าเกตสำหรับ UI การโทรแบบเต็มหน้าจอ เมื่อตั้งค่าเป็นจริง การรับสายเรียกเข้าจะแสดง UI การโทรแบบเต็มหน้าจอ โดยไม่คำนึงถึงผู้ใช้ Dialer เมื่อตั้งค่าเป็นเท็จ การรับสายเรียกเข้าจะเป็นการปิด HUN โดยไม่แสดง UI การโทรแบบเต็มหน้าจอเมื่อผู้ใช้ไม่ได้อยู่ใน 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>

ขนาดอวาตาร์ที่ใช้สำหรับรายการ

ใช้การกำหนดค่านี้เพื่อกำหนดขนาดอวาตาร์สำหรับรายการในหน้าเหล่านี้:

  • หน้าประวัติการโทร
  • หน้าผู้ติดต่อ
  • หน้าการค้นหา
  • อวาตาร์โปรไฟล์ในหน้าแป้นกด
<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>