Fix dialpad layout in landscape mode
Made the necessary adjustments so that the landscape dialpad matches
the mocks. Also ensured that large text mode does not break any
of the layouts, as far as possible.
Bug: 15859030
Change-Id: I23bb426f46d9c1d4a9436e9e02b64fac88a41d7c
diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml
index 6368279..4cca336 100644
--- a/res/layout/dialpad.xml
+++ b/res/layout/dialpad.xml
@@ -80,27 +80,9 @@
android:layout_weight="1"
android:orientation="horizontal">
<Space style="@style/DialpadSpaceStyle" />
- <com.android.phone.common.dialpad.DialpadKeyButton
- android:id="@+id/star"
- style="@style/DialpadKeyButtonStyle">
- <LinearLayout
- style="@style/DialpadKeyInternalLayoutStyle">
- <com.android.phone.common.dialpad.DialpadTextView
- android:id="@+id/dialpad_key_number"
- style="@style/DialpadKeyStarStyle" />
- </LinearLayout>
- </com.android.phone.common.dialpad.DialpadKeyButton>
+ <include layout="@layout/dialpad_key_star" />
<include layout="@layout/dialpad_key_zero" />
- <com.android.phone.common.dialpad.DialpadKeyButton
- android:id="@+id/pound"
- style="@style/DialpadKeyButtonStyle">
- <LinearLayout
- style="@style/DialpadKeyInternalLayoutStyle">
- <com.android.phone.common.dialpad.DialpadTextView
- android:id="@id/dialpad_key_number"
- style="@style/DialpadKeyPoundStyle" />
- </LinearLayout>
- </com.android.phone.common.dialpad.DialpadKeyButton>
+ <include layout="@layout/dialpad_key_pound" />
<Space style="@style/DialpadSpaceStyle" />
</LinearLayout>
<Space
diff --git a/res/layout/dialpad_key_pound.xml b/res/layout/dialpad_key_pound.xml
new file mode 100644
index 0000000..fd90b88
--- /dev/null
+++ b/res/layout/dialpad_key_pound.xml
@@ -0,0 +1,26 @@
+<?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.phone.common.dialpad.DialpadKeyButton
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/pound"
+ style="@style/DialpadKeyButtonStyle">
+ <LinearLayout
+ style="@style/DialpadKeyInternalLayoutStyle" >
+ <com.android.phone.common.dialpad.DialpadTextView
+ android:id="@id/dialpad_key_number"
+ style="@style/DialpadKeyPoundStyle"/>
+ </LinearLayout>
+</com.android.phone.common.dialpad.DialpadKeyButton>
diff --git a/res/layout/dialpad_key_star.xml b/res/layout/dialpad_key_star.xml
new file mode 100644
index 0000000..d84e156
--- /dev/null
+++ b/res/layout/dialpad_key_star.xml
@@ -0,0 +1,26 @@
+<?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.phone.common.dialpad.DialpadKeyButton
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/star"
+ style="@style/DialpadKeyButtonStyle">
+ <LinearLayout
+ style="@style/DialpadKeyInternalLayoutStyle" >
+ <com.android.phone.common.dialpad.DialpadTextView
+ android:id="@+id/dialpad_key_number"
+ style="@style/DialpadKeyStarStyle" />
+ </LinearLayout>
+</com.android.phone.common.dialpad.DialpadKeyButton>