blob: 178e33b8e8718254b43dd2bb49ed0d68a00bf31b [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 -->
22 <Space
23 android:layout_width="match_parent"
24 android:layout_height="0dp"
25 android:layout_weight="1" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070026 <LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070027 android:id="@+id/top"
Chiao Cheng94b10b52012-08-17 16:59:12 -070028 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070029 android:layout_height="0dp"
30 android:layout_weight="2"
31 android:orientation="vertical"
32 android:paddingStart="@dimen/dialpad_horizontal_margin"
33 android:paddingEnd="@dimen/dialpad_horizontal_margin"
34 android:layoutDirection="ltr"
35 android:background="@color/background_dialpad" >
Chiao Cheng94b10b52012-08-17 16:59:12 -070036
Chiao Cheng94b10b52012-08-17 16:59:12 -070037
Yorke Lee8898cd02013-08-08 10:24:27 -070038 <!-- Text field and possibly soft menu button above the keypad where
39 the digits are displayed. -->
Yorke Lee3a186542013-05-07 11:59:36 -070040 <LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070041 android:id="@+id/digits_container"
Yorke Lee3a186542013-05-07 11:59:36 -070042 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070043 android:layout_height="0px"
44 android:layout_weight="@integer/dialpad_layout_weight_digits_new"
45 android:layout_marginTop="@dimen/dialpad_vertical_margin"
46 android:gravity="center" >
47
48 <com.android.dialer.dialpad.DigitsEditText
49 android:id="@+id/digits"
50 android:layout_width="0dip"
51 android:layout_weight="1"
52 android:layout_height="match_parent"
53 android:gravity="center"
54 android:textAppearance="@style/DialtactsDigitsTextAppearance"
55 android:textColor="@color/dialpad_text_color"
56 android:nextFocusRight="@+id/overflow_menu"
57 android:background="@android:color/transparent" />
58
59 <ImageButton
60 android:id="@+id/deleteButton"
61 android:layout_width="56dip"
62 android:layout_height="match_parent"
63 android:layout_gravity="center_vertical"
64 android:gravity="center"
65 android:state_enabled="false"
66 android:background="?android:attr/selectableItemBackground"
67 android:contentDescription="@string/description_delete_button"
68 android:src="@drawable/ic_dial_action_delete" />
Yorke Lee3a186542013-05-07 11:59:36 -070069 </LinearLayout>
Yorke Lee1be01782012-11-07 15:11:44 -080070
Yorke Lee8898cd02013-08-08 10:24:27 -070071 <!-- Keypad section -->
72 <include layout="@layout/dialpad" />
Chiao Cheng94b10b52012-08-17 16:59:12 -070073
Yorke Lee8898cd02013-08-08 10:24:27 -070074 <View style="@style/DialpadHorizontalSeparator"/>
Chiao Cheng94b10b52012-08-17 16:59:12 -070075
Yorke Lee8898cd02013-08-08 10:24:27 -070076 <LinearLayout
77 android:id="@+id/dialButtonContainer"
Chiao Cheng94b10b52012-08-17 16:59:12 -070078 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070079 android:layout_height="0px"
80 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons"
81 android:layout_gravity="center_horizontal"
82 android:background="@color/dialpad_primary_text_color">
83 <ImageButton
84 android:id="@+id/call_history_on_dialpad_button"
85 android:layout_height="@dimen/fake_action_bar_height"
86 android:layout_width="@dimen/fake_menu_button_min_width"
87 android:layout_gravity="bottom|start"
88 android:background="@drawable/btn_call"
89 android:contentDescription="@string/action_menu_call_history_description"
90 android:src="@drawable/ic_menu_history_lt"/>
91 <ImageButton
92 android:id="@+id/dialButton"
93 android:layout_width="0dp"
94 android:layout_weight="1"
95 android:layout_height="match_parent"
96 android:layout_gravity="center"
97 android:state_enabled="false"
98 android:background="@drawable/btn_call"
99 android:contentDescription="@string/description_dial_button"
100 android:src="@drawable/ic_dial_action_call" />
101 <ImageButton
102 android:id="@+id/overflow_menu_on_dialpad"
103 android:layout_height="@dimen/fake_action_bar_height"
104 android:layout_width="@dimen/fake_menu_button_min_width"
105 android:layout_gravity="bottom|end"
106 android:background="@drawable/btn_call"
107 android:src="@drawable/ic_menu_overflow_lt"
108 android:contentDescription="@string/action_menu_overflow_description" />
109 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700110
Yorke Lee8898cd02013-08-08 10:24:27 -0700111 <!-- "Dialpad chooser" UI, shown only when the user brings up the
112 Dialer while a call is already in progress.
113 When this UI is visible, the other Dialer elements
114 (the textfield/button and the dialpad) are hidden. -->
115 <ListView android:id="@+id/dialpadChooser"
116 android:layout_width="match_parent"
117 android:layout_height="1dip"
118 android:layout_weight="1"
119 />
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120
Yorke Lee8898cd02013-08-08 10:24:27 -0700121 </LinearLayout>
122</view>