1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- XML resource file for the CallCard used in the Phone app. 18 19 Note that the CallCard is technically the size of the full screen (since 20 our parent container is full-screen, and the layout_width and layout_height 21 here are both "match_parent"), but we manually adjust its bottom margin 22 in CallCard.updateCallInfoLayout() to make sure it doesn't overlap with 23 the onscreen buttons from incall_touch_ui.xml. --> 24<com.android.phone.CallCard xmlns:android="http://schemas.android.com/apk/res/android" 25 android:id="@+id/call_info_container" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:orientation="vertical"> 29 30 <!-- The main content of the CallCard is either one or two "call info" 31 blocks, depending on whether one or two lines are in use. 32 33 The call_info blocks are stacked vertically inside a CallCard (LinearLayout), 34 each with layout_weight="1". If only one line is in use (i.e. the 35 common case) then the 2nd call info will be GONE and thus the 1st one 36 will expand to fill the full height of the CallCard. 37 38 We set a bottom margin on this element dynamically (see 39 updateCallInfoLayout()) to make sure it doesn't overlap with either 40 the bottom button cluster or the incoming-call widget. --> 41 42 <!-- Primary "Call info" block, for the foreground call. --> 43 <include android:id="@+id/primary_call_info" 44 layout="@layout/primary_call_info" /> 45 46 <!-- Secondary "Call info" block , for the background ("on hold") call. --> 47 <ViewStub android:id="@+id/secondary_call_info" 48 android:layout="@layout/secondary_call_info" 49 android:layout_width="match_parent" 50 android:layout_height="0dp" 51 android:layout_weight="1" /> 52 53</com.android.phone.CallCard> 54