Update dialpad screen design
- use Holo instead of Holo.Light
- show diagonal background in general
- no text change for "pressed" state
-- change button background instead
- have drawable-xhdpi directory
Bug: 4995917
Change-Id: I21902644bd02cf5ce34b9f7e82fe7deb7dad5c63
diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml
index 4533f9d..e9a95ee 100644
--- a/res/layout/dialpad.xml
+++ b/res/layout/dialpad.xml
@@ -21,12 +21,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_marginTop="10dip"
+ android:layout_marginTop="4dip"
+ android:background="@drawable/dialpad_background"
android:layout_weight="1">
<TableRow>
<ImageButton android:id="@+id/one" style="@style/DialtactsDialpadButtonStyle"
- android:src="@drawable/dial_num_1_no_vm"
+ android:src="@drawable/dial_num_1"
android:contentDescription="@string/description_image_button_one" />
<ImageButton android:id="@+id/two" style="@style/DialtactsDialpadButtonStyle"
android:src="@drawable/dial_num_2"
diff --git a/res/layout/dialpad_additional_buttons.xml b/res/layout/dialpad_additional_buttons.xml
index 8831dad..26a2c04 100644
--- a/res/layout/dialpad_additional_buttons.xml
+++ b/res/layout/dialpad_additional_buttons.xml
@@ -20,8 +20,10 @@
android:layout_width="match_parent"
android:layout_height="@dimen/dialpad_additional_buttons_height"
android:layout_gravity="center_horizontal"
- android:layout_marginBottom="8dip"
+ android:layout_marginTop="4dip"
+ android:layout_marginBottom="4dip"
android:layout_weight="0.25"
+ android:background="@drawable/dialpad_background"
android:orientation="horizontal">
<!-- Onscreen "Search button -->
@@ -31,7 +33,7 @@
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:state_enabled="false"
- android:background="@null"
+ android:background="@drawable/btn_dial"
android:contentDescription="@string/description_search_button"
android:src="@drawable/ic_dial_action_search"/>
@@ -44,7 +46,7 @@
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:state_enabled="false"
- android:background="@null"
+ android:background="@drawable/btn_dial"
android:contentDescription="@string/description_dial_button"
android:src="@drawable/ic_dial_action_call" />
@@ -55,7 +57,7 @@
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:state_enabled="false"
- android:background="@null"
+ android:background="@drawable/btn_dial"
android:contentDescription="@string/description_delete_button"
android:src="@drawable/ic_dial_action_delete" />
</LinearLayout>
diff --git a/res/layout/dialpad_fragment.xml b/res/layout/dialpad_fragment.xml
index b91c27a..aee2c25 100644
--- a/res/layout/dialpad_fragment.xml
+++ b/res/layout/dialpad_fragment.xml
@@ -19,8 +19,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:background="@android:color/black"
->
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="8dip" >
<!-- Text field above the keypad where the digits are displayed.
It's type is set to NULL (to disable the IME keyboard) in the
@@ -31,15 +31,16 @@
<EditText android:id="@+id/digits"
android:layout_width="match_parent"
android:layout_height="@dimen/dialpad_digits_height"
- android:layout_marginTop="10dip"
+ android:layout_marginTop="4dip"
android:gravity="center"
android:textAppearance="@style/DialtactsDigitsTextAppearance"
- android:textColor="?android:attr/textColorPrimaryInverse" />
+ android:background="@drawable/dialpad_background"
+ android:textColor="?android:attr/textColorPrimary" />
<!-- Keypad section -->
<include layout="@layout/dialpad" />
- <!-- Horizontal row of buttons (Voicemail + DialButton + Delete.) -->
+ <!-- Horizontal row of buttons (Search + DialButton + Delete.) -->
<include layout="@layout/dialpad_additional_buttons" />
<!-- "Dialpad chooser" UI, shown only when the user brings up the