• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
20    android:layout_height="match_parent"
21    android:orientation="vertical"
22    android:paddingLeft="@dimen/dialpad_horizontal_margin"
23    android:paddingRight="@dimen/dialpad_horizontal_margin">
24
25    <!-- Text field and possibly soft menu button above the keypad where
26         the digits are displayed. -->
27    <LinearLayout
28        android:id="@+id/digits_container"
29        android:layout_width="match_parent"
30        android:layout_height="0px"
31        android:layout_weight="0.200"
32        android:layout_marginTop="@dimen/dialpad_vertical_margin"
33        android:gravity="center"
34        android:background="@drawable/dialpad_background" >
35
36        <com.android.contacts.dialpad.DigitsEditText
37            android:id="@+id/digits"
38            android:layout_width="0dip"
39            android:layout_weight="1"
40            android:layout_height="match_parent"
41            android:layout_alignParentLeft="true"
42            android:gravity="center"
43            android:textAppearance="@style/DialtactsDigitsTextAppearance"
44            android:textColor="?android:attr/textColorPrimary"
45            android:nextFocusRight="@+id/overflow_menu"
46            android:background="@android:color/transparent" />
47
48        <ImageButton
49            android:id="@+id/overflow_menu"
50            android:layout_width="48dip"
51            android:layout_height="match_parent"
52            android:layout_alignParentRight="true"
53            android:src="@drawable/ic_menu_overflow"
54            android:contentDescription="@*android:string/action_menu_overflow_description"
55            android:nextFocusLeft="@id/digits"
56            android:background="?android:attr/selectableItemBackground"/>
57
58    </LinearLayout>
59
60    <!-- Keypad section -->
61    <include layout="@layout/dialpad" />
62
63    <View
64       android:layout_width="match_parent"
65       android:layout_height="@dimen/dialpad_vertical_margin"
66       android:background="#66000000"/>
67
68    <!-- Horizontal row of buttons (Search + DialButton + Delete.) -->
69    <include layout="@layout/dialpad_additional_buttons" />
70
71    <!-- "Dialpad chooser" UI, shown only when the user brings up the
72         Dialer while a call is already in progress.
73         When this UI is visible, the other Dialer elements
74         (the textfield/button and the dialpad) are hidden. -->
75    <ListView android:id="@+id/dialpadChooser"
76        android:layout_width="match_parent"
77        android:layout_height="1dip"
78        android:layout_weight="1"
79    />
80
81</LinearLayout>
82