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 android:layout_alignParentTop="true" 23 android:layout_alignParentStart="true" > 24 25 <LinearLayout 26 android:id="@+id/primary_call_info_container" 27 android:layout_alignParentStart="true" 28 android:layout_centerVertical="true" 29 android:layout_width="wrap_content" 30 android:layout_height="match_parent" 31 android:orientation="vertical" 32 android:elevation="@dimen/primary_call_elevation" 33 android:background="@drawable/rounded_call_card_background" 34 android:paddingTop="@dimen/call_banner_primary_call_container_top_padding" 35 android:clipChildren="false" 36 android:clipToPadding="false" 37 android:alpha="0.9" 38 android:layout_margin="10dp"> 39 40 <include layout="@layout/primary_call_info" /> 41 42 <FrameLayout 43 android:layout_width="wrap_content" 44 android:layout_height="match_parent" > 45 46 <fragment android:name="com.android.incallui.CallButtonFragment" 47 android:id="@+id/callButtonFragment" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_gravity="bottom" 51 android:layout_marginBottom="@dimen/call_buttons_bottom_margin" /> 52 <!-- Secondary "Call info" block, for the background ("on hold") call. --> 53 <include layout="@layout/secondary_call_info" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:layout_gravity="bottom" /> 57 58 </FrameLayout> 59 60 </LinearLayout> 61 62 <FrameLayout 63 android:layout_height="match_parent" 64 android:layout_width="match_parent" 65 android:layout_below="@id/primary_call_info_container" 66 android:id="@+id/call_card_content"> 67 68 <ImageView android:id="@+id/photo" 69 android:layout_toEndOf="@id/primary_call_info_container" 70 android:layout_width="match_parent" 71 android:layout_gravity="start|center_vertical" 72 android:layout_height="match_parent" 73 android:gravity="start|center_vertical" 74 android:scaleType="centerCrop" 75 android:contentDescription="@string/contactPhoto" 76 android:background="@android:color/white" 77 android:src="@drawable/img_no_image_automirrored" /> 78 79 </FrameLayout> 80 81 <include layout="@layout/manage_conference_call_button" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:layout_alignTop="@id/photo" /> 85 86 <!-- Progress spinner, useful for indicating pending operations such as upgrade to video. --> 87 <FrameLayout 88 android:id="@+id/progressSpinner" 89 android:layout_toEndOf="@id/primary_call_info_container" 90 android:background="#63000000" 91 android:layout_width="fill_parent" 92 android:layout_height="fill_parent" 93 android:layout_centerHorizontal="true" 94 android:layout_centerVertical="true" 95 android:visibility="gone" > 96 97 <ProgressBar 98 android:id="@+id/progress_bar" 99 style="@android:style/Widget.Material.ProgressBar" 100 android:layout_gravity="center" 101 android:layout_width="48dp" 102 android:layout_height="48dp" 103 android:indeterminate="true" /> 104 105 </FrameLayout> 106 107 <fragment android:name="com.android.incallui.VideoCallFragment" 108 android:layout_alignParentStart="true" 109 android:layout_gravity="start|center_vertical" 110 android:id="@+id/videoCallFragment" 111 android:layout_width="match_parent" 112 android:layout_height="match_parent" /> 113 114 <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. --> 115 <FrameLayout 116 android:id="@+id/answer_and_dialpad_container" 117 android:layout_toEndOf="@id/primary_call_info_container" 118 android:layout_gravity="end|center_vertical" 119 android:layout_alignParentEnd="true" 120 android:layout_width="match_parent" 121 android:layout_height="match_parent" /> 122 123 <FrameLayout 124 android:id="@+id/floating_end_call_action_button_container" 125 android:layout_width="@dimen/end_call_floating_action_button_diameter" 126 android:layout_height="@dimen/end_call_floating_action_button_diameter" 127 android:background="@drawable/fab_red" 128 android:layout_centerHorizontal="true" 129 android:layout_marginBottom="@dimen/end_call_button_margin_bottom" 130 android:layout_alignParentBottom="true" > 131 132 <ImageButton android:id="@+id/floating_end_call_action_button" 133 android:layout_width="match_parent" 134 android:layout_height="match_parent" 135 android:background="@drawable/end_call_background" 136 android:src="@drawable/fab_ic_end_call" 137 android:scaleType="center" 138 android:contentDescription="@string/onscreenEndCallText" /> 139 140 </FrameLayout> 141 142 </RelativeLayout> 143