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