1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 ~ Copyright (C) 2014 The Android Open Source Project 5 ~ 6 ~ Licensed under the Apache License, Version 2.0 (the "License"); 7 ~ you may not use this file except in compliance with the License. 8 ~ You may obtain a copy of the License at 9 ~ 10 ~ http://www.apache.org/licenses/LICENSE-2.0 11 ~ 12 ~ Unless required by applicable law or agreed to in writing, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License 17 --> 18 19 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" > 22 23 <LinearLayout 24 android:id="@+id/primary_call_info_container" 25 android:layout_alignParentStart="true" 26 android:layout_centerVertical="true" 27 android:layout_width="wrap_content" 28 android:layout_height="match_parent" 29 android:orientation="vertical" 30 android:elevation="@dimen/primary_call_elevation" 31 android:background="@color/incall_call_banner_background_color" 32 android:paddingTop="@dimen/call_banner_primary_call_container_top_padding" 33 android:clipChildren="false" 34 android:clipToPadding="false" > 35 36 <include layout="@layout/primary_call_info" /> 37 38 <fragment android:name="com.android.incallui.CallButtonFragment" 39 android:id="@+id/callButtonFragment" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" /> 42 43 <FrameLayout 44 android:layout_width="match_parent" 45 android:layout_height="match_parent" > 46 47 <!-- Secondary "Call info" block, for the background ("on hold") call. --> 48 <include layout="@layout/secondary_call_info" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_gravity="bottom" /> 52 53 </FrameLayout> 54 55 </LinearLayout> 56 57 <!-- Contact photo for primary call info --> 58 <ImageView android:id="@+id/photo" 59 android:layout_toEndOf="@id/primary_call_info_container" 60 android:layout_width="match_parent" 61 android:layout_gravity="start|center_vertical" 62 android:layout_height="match_parent" 63 android:gravity="start|center_vertical" 64 android:scaleType="centerCrop" 65 android:contentDescription="@string/contactPhoto" 66 android:background="@android:color/white" 67 android:src="@drawable/img_no_image_automirrored" /> 68 69 <include layout="@layout/manage_conference_call_button" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:layout_alignTop="@id/photo" /> 73 74 <fragment android:name="com.android.incallui.VideoCallFragment" 75 android:layout_alignParentStart="true" 76 android:layout_gravity="start|center_vertical" 77 android:id="@+id/videoCallFragment" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" /> 80 81 <!-- Progress spinner, useful for indicating pending operations such as upgrade to video. --> 82 <FrameLayout 83 android:id="@+id/progressSpinner" 84 android:layout_toEndOf="@id/primary_call_info_container" 85 android:background="#63000000" 86 android:layout_width="fill_parent" 87 android:layout_height="fill_parent" 88 android:layout_centerHorizontal="true" 89 android:layout_centerVertical="true" 90 android:visibility="gone" > 91 92 <ProgressBar 93 android:id="@+id/progress_bar" 94 style="@android:style/Widget.Material.ProgressBar" 95 android:layout_gravity="center" 96 android:layout_width="48dp" 97 android:layout_height="48dp" 98 android:indeterminate="true" /> 99 </FrameLayout> 100 101 <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. --> 102 <FrameLayout 103 android:id="@+id/dialpadFragmentContainer" 104 android:layout_toEndOf="@id/primary_call_info_container" 105 android:layout_gravity="end|center_vertical" 106 android:layout_alignParentEnd="true" 107 android:layout_width="match_parent" 108 android:layout_height="match_parent" /> 109 110 <fragment android:name="com.android.incallui.AnswerFragment" 111 android:id="@+id/answerFragment" 112 android:layout_toEndOf="@id/primary_call_info_container" 113 android:layout_width="match_parent" 114 android:layout_height="match_parent" 115 android:gravity="start" 116 android:layout_gravity="end|center_vertical" 117 android:layout_marginBottom="@dimen/glowpadview_margin_bottom" 118 android:visibility="gone" /> 119 120 <FrameLayout 121 android:id="@+id/floating_end_call_action_button_container" 122 android:layout_width="@dimen/end_call_floating_action_button_diameter" 123 android:layout_height="@dimen/end_call_floating_action_button_diameter" 124 android:background="@drawable/fab_red" 125 android:layout_centerHorizontal="true" 126 android:layout_marginBottom="@dimen/end_call_button_margin_bottom" 127 android:layout_alignParentBottom="true" > 128 129 <ImageButton android:id="@+id/floating_end_call_action_button" 130 android:layout_width="match_parent" 131 android:layout_height="match_parent" 132 android:background="@drawable/end_call_background" 133 android:src="@drawable/fab_ic_end_call" 134 android:scaleType="center" 135 android:contentDescription="@string/onscreenEndCallText" /> 136 137 </FrameLayout> 138 139 </RelativeLayout> 140