סטטוס שיחה

  • פעילות המארח: InCallActivity
  • פריסת הבסיס: @layout/in_call_activity

מסך שיחה נכנסת

מקטע (fragment). IncomingCallFragment

מסך לוח החיוג במהלך שיחה בפריסה לרוחב

פריסה: ‏@layout/ongoing_call_fragment

מסך שיחה נכנסת

איור 1. מסך שיחה נכנסת

Component [id:]ClassName נכס הערך
background_image:
BackgroundImageView
@config/config_background_image_alpha 1.0
משמש באופן פרוגרמטי לתמונות פרופיל של אנשי קשר.
@config/config_background_image_error_alpha 1.0
משמש באופן פרוגרמטי לכרטיסי מכתבים לאנשי קשר. אם הערך יהיה 0.0, צבע הרקע יוסתר.
user_profile_container:
@layout/user_profile_large
לא רלוונטי לא רלוונטי
ringing_call_controller_bar:
RingingCallControllerBarFragment
height @dimen/in_call_controller_bar_height
layout_margintStart
layout_marginEnd
layout_marginBottom
@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/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

הדף של השיחה הפעילה

מקטע (fragment). 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 בדף Incoming call.
  • פריסה לרוחב
  • הדגשת דיוקן
onhold_user_profile: OnHoldCallUserProfileFragment height @dimen/onhold_user_info_height
layout_marginTop @dimen/onhold_profile_margin_y
layout_marginStart
layout_marginEnd
@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 מופיע בפריסה שונה. מידע נוסף זמין בקטע מצב אנכי בדף השיחה הנכנסת.

לוח חיוג במהלך שיחה

מקטע (fragment). InCallDialpadFragment

פריסה לרוחב

פריסה. @layout/incall_dialpad_fragment

מסך לוח החיוג במהלך שיחה בפריסה לרוחב

איור 5. מסך לוח החיוג במהלך שיחה בפריסה לרוחב

Component [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. מסך לוח החיוג במהלך שיחה במצב לאורך

Component [id:]ClassName נכס הערך
dialpad_fragment: KeypadFragment layout_marginTop @dimen/keypad_margin
call_state: Chronometer layout_width match_parent כדי להימנע מאיור מחדש של כל התצוגה כשמעדכנים את הטקסט.
gravity center
textAppearance @style/TextAppearance.InCallState
marginStart
marginEnd
@dimen/dialpad_info_edge_padding_size
title: TextView gravity כדי למרכז את המספר שהוקלד ולהוסיף לו חלודה בהתחלה, צריך להגדיר את הערך של 'width' כ-wrap_content.
textAppearance @style/TextAppearance.DialNumber
marginStart
marginEnd
@dimen/dialpad_info_edge_padding_size

KeypadFragment. מידע נוסף זמין במאמר לוח מקשים