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