- نشاط المضيف:
InCallActivity
- تنسيق الجذر:
@layout/in_call_activity
فحص المكالمات الواردة
جزء. IncomingCallFragment
شاشة لوحة الاتصال أثناء المكالمة في الوضع الأفقي
التنسيق: @layout/ongoing_call_fragment
الشكل 1: شاشة المكالمات الواردة
المكوّن [id:]ClassName | الموقع | القيمة |
---|---|---|
background_image: |
@config/config_background_image_alpha |
1.0 يُستخدَم هذا الإصدار آليًا لصور جهات الاتصال الرمزية. |
@config/config_background_image_error_alpha |
1.0 يُستخدَم بشكل آلي في مربّعات جهات الاتصال. سيؤدي ضبطه على 0.0 إلى إخفاء لون الخلفية. |
|
user_profile_container: |
لا ينطبق | لا ينطبق |
ringing_call_controller_bar: |
height |
@dimen/in_call_controller_bar_height |
layout_margintStart |
@dimen/in_call_controller_bar_margin |
- الملف الشخصي للمستخدم
@layout/user_profile_large
Component [id:]ClassName
الموقع القيمة root: LinearLayout
orientation
horizontal
paddingStart
paddingEnd@dimen/in_call_user_profile_margin
user_profile_avatar: ImageView
width
in_call_avatar_icon_size
height
in_call_avatar_icon_size
scaleType
fitCenter
User info: LinearLayout
paddingStart
@dimen/in_call_margin_between_avatar_and_text
user_profile_title:TextView
textAppearance
@style/TextAppearance.InCallUserTitle
user_profile_phone_number: TextView
textAppearance
@style/TextAppearance.InCallUserPhoneNumber
marginTop
@dimen/in_call_phone_number_margin_top
user_profile_call_state: Chronometer
textAppearance
@style/TextAppearance.InCallState
marginTop
@dimen/in_call_state_margin_top
- RingingCallControllerBarFragment
@layout/ringing_call_controller_bar_fragment
Component [id:]ClassName
الموقع القيمة root: ConstraintLayout
height
@dimen/in_call_controller_bar_height
background
@android:color/transparent
answer_call_button: ImageView
width
height@dimen/ringing_call_button_touch_target_size
background
@drawable/dialer_ripple_background
src
@drawable/ic_phone
tint
@color/phone_call
scaleType
center
answer_call_text: TextView
marginStart
@dimen/ringing_call_text_margin
text
@string/answer_call
textAppearance
?android:attr/textAppearanceLarge
end_call_button: ImageView
width
height@dimen/ringing_call_button_touch_target_size
background
@drawable/dialer_ripple_background
src
@drawable/ic_call_end
tint
@color/phone_end_call
scaleType
center
end_call_text: TextView
marginStart
@dimen/ringing_call_text_margin
text
@string/decline_call
textAppearance
?android:attr/textAppearanceLarge
mid_line: Guideline
constraintGuide_percent
0.5
مكالمة واردة في الوضع العمودي
تتشارك صفحة المكالمات الواردة في الوضع العمودي مع الوضع الأفقي @layout/ongoing_call_fragment
نفسه، باستثناء @layout[-port]/user_profile_large
الذي يتم تنسيقه
بشكل مختلف.
الشكل 2: مكالمة واردة في الوضع العمودي
- الملف الشخصي للمستخدم
@layout/user_profile_large
Component [id:]ClassName
الموقع القيمة root: LinearLayout
orientation
vertical
gravity
center
user_profile_avatar: ImageView
width
in_call_avatar_icon_size
height
in_call_avatar_icon_size
scaleType
fitCenter
user_profile_title: TextView
textAppearance
@style/TextAppearance.InCallUserTitle
paddingTop
@dimen/in_call_margin_between_avatar_and_text
user_profile_phone_number: TextView
textAppearance
@style/TextAppearance.InCallUserPhoneNumber
paddingTop
@dimen/in_call_phone_number_margin_top
user_profile_call_state: Chronometer
textAppearance
@style/TextAppearance.InCallState
paddingTop
@dimen/in_call_state_margin_top
صفحة المكالمة الجارية
جزء. OngoingCallFragment
الوضع الأفقي
الشكل 3: شاشة المكالمة الجارية في الوضع الأفقي
Component [id:]ClassName |
الموقع | القيمة | |
---|---|---|---|
background_image: BackgroundImageView |
@config/config_background_image_alpha |
1.0 يُستخدَم هذا الإصدار آليًا لصور جهات الاتصال الرمزية. |
|
@config/config_background_image_error_alpha |
1.0 يُستخدَم بشكل آلي في مربّعات جهات الاتصال. عند ضبطه على 0.0، يتم إخفاء لون الخلفية. |
||
حاوية لطرق العرض الأخرى: ConstraintLayout |
background |
@android:color/transparent مطلوب لتشغيل تأثير التموج في أزرار شريط التحكّم. |
|
incall_dialpad_fragment: InCallDialpadFragment |
لا ينطبق | راجِع لوحة الاتصال أثناء المكالمة. | |
user_profile_container: @layout/user_profile_large |
لا ينطبق | يشبه الرمز @layout/user_profile_large في
صفحة المكالمات الواردة.
|
|
onhold_user_profile: OnHoldCallUserProfileFragment |
height |
@dimen/onhold_user_info_height |
|
layout_marginTop |
@dimen/onhold_profile_margin_y |
||
layout_marginStart |
@dimen/onhold_profile_margin_x |
||
ongoing_call_control_bar: OnGoingCallControllerBarFragment |
layout_marginBottom |
@dimen/in_call_controller_bar_margin |
|
layout_marginHorizontal |
@dimen/in_call_controller_bar_margin |
- OnHoldCallUserProfileFragment
@layout/onhold_user_profile
المكوّن [id:]ClassName الموقع القيمة root: CardView
android:elevation
@dimen/dialer_card_elevation
cardBackgroundColor
@color/onhold_call_background
cardCornerRadius
@dimen/onhold_profile_corner_radius
swap_calls_view: ConstraintLayout
background
?android:attr/selectableItemBackground
guideline: Guideline
layout_constraintGuide_begin
@dimen/onhold_profile_guideline
icon: ImageView
width
height@dimen/avatar_icon_size
scaleType
centerCrop
layout_marginStart
@dimen/onhold_profile_avatar_margin
title: TextView
textAppearance
?android:attr/textAppearanceLarge
text: TextView
text
@string/onhold_call_label
textAppearance
?android:attr/textAppearanceSmall
swap_call_button: ImageView
src
@drawable/ic_swap_calls
tint
@color/secondary_icon_color
scaleType
center
paddingLeft
paddingRight@dimen/swap_call_button_margin
- OnGoingCallControllerBarFragment.
@layout/on_going_call_controller_bar_fragment
Component [id:]ClassName
الموقع القيمة root: ConstraintLayout
height
@dimen/in_call_controller_bar_height
mute_button: ImageView
width
height@dimen/in_call_button_size
scaleType
center
src
@drawable/ic_mute_activatable
background
@drawable/dialer_ripple_background
toggle_dialpad_button: ImageView
width
height@dimen/in_call_button_size
scaleType
center
src
@drawable/ic_dialpad_activatable
background
@drawable/dialer_ripple_background
end_call_button: ImageView
style
@style/DialpadPrimaryButton
src
@drawable/ic_call_end_button
voice_channel_view: LinearLayout
orientation
vertical
voice_channel_button: ImageView
width
height@dimen/in_call_button_size
scaleType
center
src
@drawable/ic_audio_route_vehicle_activatable
background
@drawable/dialer_ripple_background
voice_channel_text: TextView
visibility
gone
pause_button: ImageView
width
height@dimen/in_call_button_size
scaleType
center
src
@drawable/ic_pause_activatable
background
@drawable/dialer_ripple_background
الشكل 4. صفحة المكالمة الجارية في الوضع العمودي
يتشارك الوضع العمودي التنسيق نفسه باستثناء أنّه يتم عرض @layout/user_profile_large
بشكل مختلف. راجِع أيضًا
الوضع العمودي
في صفحة المكالمة الواردة.
لوحة الاتصال أثناء المكالمة
جزء. InCallDialpadFragment
الوضع الأفقي
التنسيق: @layout/incall_dialpad_fragment
الشكل 5. شاشة لوحة الاتصال أثناء المكالمة في الوضع الأفقي
المكوّن [id:]ClassName | الموقع | القيمة |
---|---|---|
divider: Guideline |
layout_constraintGuide_percent |
0.5 |
dialpad_fragment: KeypadFragment |
لا ينطبق | راجِع لوحة المفاتيح. |
dialpad_info_boundaries: View |
height |
إنّ أسعار الغُرَف في هذا الفندق تساوي أسعار الغُرَف في فندق dialpad_fragment . |
layout_constraintDimensionRatio |
W, 1:1 |
|
call_state: Chronometer |
layout_width |
match_parent لتجنُّب إعادة رسم العرض بالكامل عند تعديل النص |
textAppearance |
@style/TextAppearance.InCallState |
|
marginBottom |
@dimen/call_state_padding |
|
title: TextView |
textAppearance |
@style/TextAppearance.DialNumber |
لوحة الاتصال أثناء المكالمة في الوضع العمودي
التنسيق: @layout[-port]/incall_dialpad_fragment
الشكل 6: شاشة لوحة الاتصال أثناء المكالمة في الوضع العمودي
المكوّن [id:]ClassName | الموقع | القيمة |
---|---|---|
dialpad_fragment: KeypadFragment |
layout_marginTop |
@dimen/keypad_margin |
call_state: Chronometer |
layout_width |
match_parent لتجنُّب إعادة رسم العرض بالكامل عند تعديل النص |
gravity |
center |
|
textAppearance |
@style/TextAppearance.InCallState |
|
marginStart |
@dimen/dialpad_info_edge_padding_size |
|
title: TextView |
gravity |
يُرجى إنهاء الرمز مع ضبط العرض على wrap_content لكي يظهر الرقم الذي تم الاتصال به في المنتصف
ويختفي عند البدء. |
textAppearance |
@style/TextAppearance.DialNumber |
|
marginStart |
@dimen/dialpad_info_edge_padding_size |
KeypadFragment
. يُرجى الاطّلاع على
لوحة المفاتيح