Fixed the contact's dialer layout.
Currently the bottom row is clipped on WVGA-800.
Changes were made to fix the emergency dialer
that needed to be applied to the contact dialer.
Now, the contact dialer uses the same ButtonGridLayout
class which aligns the button at the bottom of the view.
This way we can control the spacing between the last row and
the 'torpedo' accurately.
The rest of the white space is distributed amongst the element
using layout_weight="1".
Tested on VGA, WVGA-854, WVGA-800
Bug:2198341
diff --git a/res/layout-long-finger/dialpad.xml b/res/layout-long-finger/dialpad.xml
index af303fc..9fea6d2 100644
--- a/res/layout-long-finger/dialpad.xml
+++ b/res/layout-long-finger/dialpad.xml
@@ -27,6 +27,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
+ android:layout_weight="1"
>
<ImageButton android:id="@+id/one"
android:layout_width="88dp"
diff --git a/res/layout-long-finger/twelve_key_dialer.xml b/res/layout-long-finger/twelve_key_dialer.xml
index 1ccb70c..07771cc 100644
--- a/res/layout-long-finger/twelve_key_dialer.xml
+++ b/res/layout-long-finger/twelve_key_dialer.xml
@@ -29,7 +29,6 @@
<EditText android:id="@+id/digits"
android:layout_width="fill_parent"
android:layout_height="74dip"
- android:layout_marginBottom="20dip"
android:gravity="center"
android:maxLines="1"
android:scrollHorizontally="true"
@@ -40,6 +39,7 @@
android:focusableInTouchMode="true"
android:editable="true"
android:cursorVisible="false"
+ android:layout_weight="0"
/>
<!-- Keypad section -->
diff --git a/res/layout-long-finger/voicemail_dial_delete.xml b/res/layout-long-finger/voicemail_dial_delete.xml
index 58c482b..10e4197 100644
--- a/res/layout-long-finger/voicemail_dial_delete.xml
+++ b/res/layout-long-finger/voicemail_dial_delete.xml
@@ -22,10 +22,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_marginTop="24dip"
+ android:layout_marginTop="6dip"
+ android:layout_weight="1"
android:orientation="horizontal">
- <!-- Onscreen "Voicemail" button -->
+ <!-- Onscreen "Voicemail" button.
+ The width is 75 (from the mocks) + 12 of padding from the
+ 9patch, total is 87.
+ -->
<ImageButton android:id="@+id/voicemailButton"
android:layout_width="87dip"
android:layout_height="58dip"
@@ -45,7 +49,10 @@
android:background="@drawable/btn_dial_action"
android:src="@drawable/ic_dial_action_call" />
- <!-- Onscreen "Backspace/Delete" button -->
+ <!-- Onscreen "Backspace/Delete" button
+ The width is 75 (from the mocks) + 12 of padding from the
+ 9patch, total is 87.
+ -->
<ImageButton android:id="@+id/deleteButton"
android:layout_width="87dip"
android:layout_height="58dip"