summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSai Cheemalapati <saicheems@google.com>2014-06-09 18:17:18 -0700
committerSai Cheemalapati <saicheems@google.com>2014-06-09 19:18:05 -0700
commit4e85e5a265a7b51d4f3ed4b7a5da7aaa0b53774c (patch)
treea27c1b34ef27509263db8f8b2588a70572efe1f2 /res/layout
parentc4c60d0dadc3c94b48c4bf5919c3fa6459c7440b (diff)
downloadandroid_packages_apps_ContactsCommon-4e85e5a265a7b51d4f3ed4b7a5da7aaa0b53774c.tar.gz
android_packages_apps_ContactsCommon-4e85e5a265a7b51d4f3ed4b7a5da7aaa0b53774c.tar.bz2
android_packages_apps_ContactsCommon-4e85e5a265a7b51d4f3ed4b7a5da7aaa0b53774c.zip
Matching landscape Dialpad keys to mocks.
Landscape dialpad now matches mock. Subscript letters now appear to the right of each number. Bug: 15386162 Change-Id: Ic1d2ac91394c89c359b7bb665fa2bd51fef83cf7
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/dialpad.xml28
-rw-r--r--res/layout/dialpad_key_one.xml41
2 files changed, 43 insertions, 26 deletions
diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml
index 6c794a45..90cbe184 100644
--- a/res/layout/dialpad.xml
+++ b/res/layout/dialpad.xml
@@ -28,31 +28,7 @@
android:layout_weight="1"
android:orientation="horizontal">
<Space style="@style/DialpadSpaceStyle" />
- <com.android.contacts.common.dialpad.DialpadKeyButton
- android:id="@+id/one"
- style="@style/DialpadKeyButtonStyle">
- <LinearLayout
- style="@style/DialpadKeyInternalLayoutStyle">
- <com.android.contacts.common.dialpad.DialpadTextView
- android:id="@+id/dialpad_key_number"
- style="@style/DialpadKeyNumberStyle" />
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" >
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="@dimen/dialpad_voicemail_icon_padding_top"
- android:id="@+id/dialpad_key_voicemail"
- android:src="@drawable/ic_dialpad_vm"
- android:scaleType="fitCenter"
- android:layout_centerInParent="true"
- android:tint="@color/dialpad_secondary_text_color" />
- <!-- Place empty text view so vertical height is same as other dialpad keys. -->
- <TextView style="@style/DialpadKeyLettersStyle" />
- </RelativeLayout>
- </LinearLayout>
- </com.android.contacts.common.dialpad.DialpadKeyButton>
+ <include layout="@layout/dialpad_key_one" />
<include layout="@layout/dialpad_key"
android:id="@+id/two"
style="@style/DialpadKeyButtonStyle" />
@@ -110,7 +86,7 @@
<LinearLayout
style="@style/DialpadKeyInternalLayoutStyle">
<com.android.contacts.common.dialpad.DialpadTextView
- android:id="@id/dialpad_key_number"
+ android:id="@+id/dialpad_key_number"
style="@style/DialpadKeyStarStyle" />
</LinearLayout>
</com.android.contacts.common.dialpad.DialpadKeyButton>
diff --git a/res/layout/dialpad_key_one.xml b/res/layout/dialpad_key_one.xml
new file mode 100644
index 00000000..2365e6ef
--- /dev/null
+++ b/res/layout/dialpad_key_one.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2006 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<com.android.contacts.common.dialpad.DialpadKeyButton
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/one"
+ style="@style/DialpadKeyButtonStyle">
+ <LinearLayout
+ style="@style/DialpadKeyInternalLayoutStyle">
+ <com.android.contacts.common.dialpad.DialpadTextView
+ android:id="@+id/dialpad_key_number"
+ style="@style/DialpadKeyNumberStyle" />
+ <RelativeLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" >
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="@dimen/dialpad_voicemail_icon_padding_top"
+ android:id="@+id/dialpad_key_voicemail"
+ android:src="@drawable/ic_dialpad_vm"
+ android:scaleType="fitCenter"
+ android:layout_centerInParent="true"
+ android:tint="@color/dialpad_secondary_text_color" />
+ <!-- Place empty text view so vertical height is same as other dialpad keys. -->
+ <TextView style="@style/DialpadKeyLettersStyle" />
+ </RelativeLayout>
+ </LinearLayout>
+</com.android.contacts.common.dialpad.DialpadKeyButton>