1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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<!-- A layout representing the zero key in the dialpad, with the plus sign shifted up because it is
18     smaller than a regular letter -->
19<com.android.phone.common.dialpad.DialpadKeyButton
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/zero"
22    style="@style/DialpadKeyButtonStyle" >
23
24    <LinearLayout style="@style/DialpadKeyInternalLayoutStyle"
25        android:orientation="horizontal"
26        android:baselineAligned="false"
27        android:layout_gravity="right|center_vertical">
28
29        <!-- Note in the referenced styles that we assign hard widths to these components
30             because we want them to line up vertically when we arrange them in an MxN grid -->
31
32        <com.android.phone.common.dialpad.DialpadTextView
33            android:id="@+id/dialpad_key_number"
34            android:layout_marginRight="@dimen/dialpad_key_margin_right"
35            android:layout_marginBottom="0dp"
36            style="@style/DialpadBottomKeyNumberStyle" />
37
38        <TextView
39            android:id="@+id/dialpad_key_letters"
40            android:layout_width="@dimen/dialpad_key_text_width"
41            style="@style/DialpadKeyLettersStyle" />
42    </LinearLayout>
43</com.android.phone.common.dialpad.DialpadKeyButton>
44