blob: e673cea984eb44e5c516b8da374fc2750ab5a3b6 [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-->
Yorke Lee8898cd02013-08-08 10:24:27 -070016<view class="com.android.dialer.dialpad.DialpadFragment$DialpadSlidingLinearLayout"
17 xmlns:android="http://schemas.android.com/apk/res/android"
Chiao Cheng94b10b52012-08-17 16:59:12 -070018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070020 android:orientation="vertical" >
21 <!-- spacer view -->
Chiao Chenga4ef5092013-11-12 13:41:27 -080022 <View
23 android:id="@+id/spacer"
Yorke Lee8898cd02013-08-08 10:24:27 -070024 android:layout_width="match_parent"
25 android:layout_height="0dp"
26 android:layout_weight="1" />
Yorke Leec45baec2013-09-05 18:25:48 -070027 <view class="com.android.dialer.dialpad.DialpadFragment$HoverIgnoringLinearLayout"
Yorke Lee8898cd02013-08-08 10:24:27 -070028 android:id="@+id/top"
Chiao Cheng94b10b52012-08-17 16:59:12 -070029 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070030 android:layout_height="0dp"
31 android:layout_weight="2"
32 android:orientation="vertical"
33 android:paddingStart="@dimen/dialpad_horizontal_margin"
34 android:paddingEnd="@dimen/dialpad_horizontal_margin"
35 android:layoutDirection="ltr"
36 android:background="@color/background_dialpad" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070037
Chiao Cheng94b10b52012-08-17 16:59:12 -070038
Yorke Lee8898cd02013-08-08 10:24:27 -070039 <!-- Text field and possibly soft menu button above the keypad where
40 the digits are displayed. -->
Yorke Lee3a186542013-05-07 11:59:36 -070041 <LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070042 android:id="@+id/digits_container"
Yorke Lee3a186542013-05-07 11:59:36 -070043 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070044 android:layout_height="0px"
Yorke Lee85c09462013-10-07 17:30:49 -070045 android:layout_weight="@integer/dialpad_layout_weight_digits"
Yorke Lee8898cd02013-08-08 10:24:27 -070046 android:layout_marginTop="@dimen/dialpad_vertical_margin"
47 android:gravity="center" >
48
49 <com.android.dialer.dialpad.DigitsEditText
50 android:id="@+id/digits"
51 android:layout_width="0dip"
52 android:layout_weight="1"
53 android:layout_height="match_parent"
Yorke Leea394f112013-08-29 17:02:33 -070054 android:paddingLeft="10dp"
Yorke Lee8898cd02013-08-08 10:24:27 -070055 android:gravity="center"
Yorke Leea394f112013-08-29 17:02:33 -070056 android:scrollHorizontally="true"
57 android:singleLine="true"
Yorke Lee8898cd02013-08-08 10:24:27 -070058 android:textAppearance="@style/DialtactsDigitsTextAppearance"
59 android:textColor="@color/dialpad_text_color"
Yorke Leee5fc66c2013-09-06 12:40:10 -070060 android:textCursorDrawable="@null"
Yorke Leec632ed32013-09-09 20:01:56 -070061 android:fontFamily="sans-serif-light"
Yorke Lee8898cd02013-08-08 10:24:27 -070062 android:nextFocusRight="@+id/overflow_menu"
63 android:background="@android:color/transparent" />
64
65 <ImageButton
66 android:id="@+id/deleteButton"
67 android:layout_width="56dip"
68 android:layout_height="match_parent"
69 android:layout_gravity="center_vertical"
70 android:gravity="center"
71 android:state_enabled="false"
72 android:background="?android:attr/selectableItemBackground"
73 android:contentDescription="@string/description_delete_button"
74 android:src="@drawable/ic_dial_action_delete" />
Yorke Lee3a186542013-05-07 11:59:36 -070075 </LinearLayout>
Yorke Lee1be01782012-11-07 15:11:44 -080076
Yorke Lee8898cd02013-08-08 10:24:27 -070077 <!-- Keypad section -->
78 <include layout="@layout/dialpad" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070079
Yorke Lee8898cd02013-08-08 10:24:27 -070080 <View style="@style/DialpadHorizontalSeparator"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070081
Yorke Lee8898cd02013-08-08 10:24:27 -070082 <LinearLayout
83 android:id="@+id/dialButtonContainer"
Chiao Cheng94b10b52012-08-17 16:59:12 -070084 android:layout_width="match_parent"
Yorke Lee85c09462013-10-07 17:30:49 -070085 android:layout_height="@dimen/fake_action_bar_height"
Yorke Lee8898cd02013-08-08 10:24:27 -070086 android:layout_gravity="center_horizontal"
Yorke Lee7dbcf182013-08-22 16:02:12 -070087 android:background="@color/dialpad_primary_text_color"
88 android:layoutDirection="locale">
Yorke Lee8898cd02013-08-08 10:24:27 -070089 <ImageButton
90 android:id="@+id/call_history_on_dialpad_button"
Yorke Lee6ebbb022013-08-09 13:50:26 -070091 android:layout_height="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070092 android:layout_width="@dimen/fake_menu_button_min_width"
93 android:layout_gravity="bottom|start"
94 android:background="@drawable/btn_call"
95 android:contentDescription="@string/action_menu_call_history_description"
96 android:src="@drawable/ic_menu_history_lt"/>
97 <ImageButton
98 android:id="@+id/dialButton"
99 android:layout_width="0dp"
100 android:layout_weight="1"
101 android:layout_height="match_parent"
102 android:layout_gravity="center"
103 android:state_enabled="false"
104 android:background="@drawable/btn_call"
105 android:contentDescription="@string/description_dial_button"
106 android:src="@drawable/ic_dial_action_call" />
107 <ImageButton
108 android:id="@+id/overflow_menu_on_dialpad"
Yorke Lee6ebbb022013-08-09 13:50:26 -0700109 android:layout_height="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -0700110 android:layout_width="@dimen/fake_menu_button_min_width"
111 android:layout_gravity="bottom|end"
112 android:background="@drawable/btn_call"
113 android:src="@drawable/ic_menu_overflow_lt"
114 android:contentDescription="@string/action_menu_overflow_description" />
115 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700116
Yorke Lee8898cd02013-08-08 10:24:27 -0700117 <!-- "Dialpad chooser" UI, shown only when the user brings up the
118 Dialer while a call is already in progress.
119 When this UI is visible, the other Dialer elements
120 (the textfield/button and the dialpad) are hidden. -->
121 <ListView android:id="@+id/dialpadChooser"
122 android:layout_width="match_parent"
123 android:layout_height="1dip"
124 android:layout_weight="1"
125 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700126
Yorke Leec45baec2013-09-05 18:25:48 -0700127 </view>
Yorke Lee8898cd02013-08-08 10:24:27 -0700128</view>