- Atividade do host:
InCallActivity
- Layout raiz:
@layout/in_call_activity
Tela de ligações recebidas
Fragmento. IncomingCallFragment
Tela do teclado de discagem do InCall no modo paisagem
Layout: @layout/ongoing_call_fragment
Figura 1. Tela de ligação recebida
Component [id:]ClassName | Propriedade | Valor |
---|---|---|
background_image: |
@config/config_background_image_alpha |
1.0 Usado programaticamente para avatares de contato. |
@config/config_background_image_error_alpha |
1.0 Usado programaticamente para blocos de cartas de contato. Definir como 0,0 oculta a cor de plano de fundo. |
|
user_profile_container: |
N/A | N/A |
ringing_call_controller_bar: |
height |
@dimen/in_call_controller_bar_height |
layout_margintStart |
@dimen/in_call_controller_bar_margin |
- Perfil do usuário.
@layout/user_profile_large
Component [id:]ClassName
Propriedade Valor 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
Propriedade Valor 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
Chamada recebida no modo retrato
A página de chamada recebida no modo retrato compartilha o mesmo @layout/ongoing_call_fragment
com o modo paisagem, exceto @layout[-port]/user_profile_large
, que é
disposta de maneira diferente.
Figura 2. Chamada recebida no modo retrato
- Perfil do usuário.
@layout/user_profile_large
Component [id:]ClassName
Propriedade Valor 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
Página de chamada em andamento
Fragmento. OngoingCallFragment
Modo paisagem
Figura 3. Tela de chamada em andamento no modo paisagem
Component [id:]ClassName |
Propriedade | Valor | |
---|---|---|---|
background_image: BackgroundImageView |
@config/config_background_image_alpha |
1.0 Usado programaticamente para avatares de contato. |
|
@config/config_background_image_error_alpha |
1.0 Usado programaticamente para blocos de cartas de contato. Quando definido como 0,0, a cor do plano de fundo fica oculta. |
||
Contêiner de outras visualizações: ConstraintLayout |
background |
@android:color/transparent Necessário para fazer com que a ondulação funcione nos botões da barra de controle. |
|
incall_dialpad_fragment: InCallDialpadFragment |
N/A | Consulte Teclado do InCall. | |
user_profile_container: @layout/user_profile_large |
N/A | Igual ao @layout/user_profile_large na
página de chamadas recebidas.
|
|
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
Componente [id:]ClassName Propriedade Valor 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
Propriedade Valor 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
Figura 4. Página de chamada em andamento no modo retrato
O modo retrato compartilha o mesmo layout, exceto que o @layout/user_profile_large
é organizado
de maneira diferente. Consulte também
Modo retrato
na página Chamada recebida.
Teclado do InCall
Fragmento. InCallDialpadFragment
Modo paisagem
Layout. @layout/incall_dialpad_fragment
Figura 5. Tela do teclado numérico do InCall no modo paisagem
Component [id:]ClassName | Propriedade | Valor |
---|---|---|
divider: Guideline |
layout_constraintGuide_percent |
0,5 |
dialpad_fragment: KeypadFragment |
N/A | Consulte Teclado. |
dialpad_info_boundaries: View |
height |
Igual ao hotel dialpad_fragment |
layout_constraintDimensionRatio |
W, 1:1 |
|
call_state: Chronometer |
layout_width |
match_parent para evitar a renderização de toda a visualização na atualização de texto |
textAppearance |
@style/TextAppearance.InCallState |
|
marginBottom |
@dimen/call_state_padding |
|
title: TextView |
textAppearance |
@style/TextAppearance.DialNumber |
Teclado do InCall no modo retrato
Layout. @layout[-port]/incall_dialpad_fragment
Figura 6. Tela do teclado numérico do InCall no modo retrato
Component [id:]ClassName | Propriedade | Valor |
---|---|---|
dialpad_fragment: KeypadFragment |
layout_marginTop |
@dimen/keypad_margin |
call_state: Chronometer |
layout_width |
match_parent para evitar a renderização de toda a visualização na atualização de texto. |
gravity |
center |
|
textAppearance |
@style/TextAppearance.InCallState |
|
marginStart |
@dimen/dialpad_info_edge_padding_size |
|
title: TextView |
gravity |
O fim com a largura definida como wrap_content para centralizar o número discado
e desbotar no início. |
textAppearance |
@style/TextAppearance.DialNumber |
|
marginStart |
@dimen/dialpad_info_edge_padding_size |
KeypadFragment
. Consulte
Teclado.