ค่าส่วนกลางที่กำหนดค่าได้

ใช้แหล่งข้อมูลในบทความนี้เพื่อปรับแต่งโทรศัพท์ มุมมองที่แตกต่างกันจะใช้ ทรัพยากรที่เปลี่ยนเส้นทางจากค่าส่วนกลาง สำหรับข้อมูลเพิ่มเติม โปรดดูการออกแบบ UX ของ AOSP (อาจ ต้องลงชื่อเข้าใช้)

การเคลื่อนไหวการป้อนข้อมูลแป้นหมายเลข

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

<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>

ผลการค้นหาแบบเรียลไทม์เมื่อผู้ใช้โทรออกด้วยแป้นหมายเลข

<!-- 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>