blob: b3945f61ebf0661f7e35c03ec4104f870b22ee7a [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@+id/top"
19 android:layout_width="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070020 android:layout_height="match_parent"
21 android:layoutDirection="ltr" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070022
23 <LinearLayout
24 android:layout_width="0dp"
25 android:layout_height="match_parent"
26 android:layout_weight="3"
27 android:orientation="vertical" >
28
29 <LinearLayout
30 android:id="@+id/digits_container"
31 android:layout_width="match_parent"
32 android:layout_height="0px"
33 android:layout_weight="@integer/dialpad_layout_weight_digits"
34 android:layout_marginTop="@dimen/dialpad_vertical_margin"
35 android:background="@drawable/dialpad_background"
36 android:gravity="center">
37
38 <com.android.dialer.dialpad.DigitsEditText
39 android:id="@+id/digits"
40 android:layout_width="0dip"
41 android:layout_weight="1"
42 android:layout_height="match_parent"
43 android:gravity="center"
44 android:textAppearance="@style/DialtactsDigitsTextAppearance"
45 android:textColor="?android:attr/textColorPrimary"
46 android:nextFocusRight="@+id/overflow_menu"
47 android:background="@android:color/transparent" />
48
49 <ImageButton
50 android:id="@+id/deleteButton"
51 android:layout_width="56dip"
52 android:layout_height="match_parent"
53 android:layout_gravity="center_vertical"
54 android:gravity="center"
55 android:state_enabled="false"
56 android:background="?android:attr/selectableItemBackground"
57 android:contentDescription="@string/description_delete_button"
58 android:src="@drawable/ic_dial_action_delete" />
59
60
61 </LinearLayout>
62 <!-- "Dialpad chooser" UI, shown only when the user brings up the
63 Dialer while a call is already in progress.
64 When this UI is visible, the other Dialer elements
65 (the textfield and button) are hidden. -->
66 <ListView android:id="@+id/dialpadChooser"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:footerDividersEnabled="true" />
70
71 <!-- Keypad section -->
72 <include layout="@layout/dialpad" />
73 </LinearLayout>
74 <View
75 android:layout_width="@dimen/dialpad_center_margin"
76 android:layout_height="match_parent"
77 android:background="#66000000"/>
78 <RelativeLayout
79 android:id="@+id/dialButtonContainer"
80 android:layout_width="0dp"
81 android:layout_height="match_parent"
82 android:layout_weight="2"
83 android:background="@drawable/dialpad_background">
84 <View
85 android:layout_width="match_parent"
86 android:layout_height="@dimen/dialpad_button_margin"
Yorke Lee8898cd02013-08-08 10:24:27 -070087 android:layout_above="@+id/dialButton"
Chiao Cheng94b10b52012-08-17 16:59:12 -070088 android:background="#33000000" />
Yorke Lee8898cd02013-08-08 10:24:27 -070089 <ImageButton android:id="@id/dialButton"
Chiao Cheng94b10b52012-08-17 16:59:12 -070090 android:layout_width="match_parent"
91 android:layout_height="@dimen/call_button_height"
92 android:layout_alignParentBottom="true"
93 android:state_enabled="false"
94 android:background="@drawable/btn_call"
95 android:contentDescription="@string/description_dial_button"
96 android:src="@drawable/ic_dial_action_call" />
97 </RelativeLayout>
98</LinearLayout>