diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_voice_search.png | bin | 0 -> 1271 bytes | |||
-rw-r--r-- | res/drawable-hdpi/shadow_contact_photo.png | bin | 0 -> 346 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_voice_search.png | bin | 0 -> 913 bytes | |||
-rw-r--r-- | res/drawable-mdpi/shadow_contact_photo.png | bin | 0 -> 339 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_voice_search.png | bin | 0 -> 1603 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/shadow_contact_photo.png | bin | 0 -> 353 bytes | |||
-rw-r--r-- | res/layout/new_dialtacts_activity.xml | 10 | ||||
-rw-r--r-- | res/layout/phone_favorite_tile_view.xml | 44 | ||||
-rw-r--r-- | res/menu/dialtacts_options_new.xml | 3 | ||||
-rw-r--r-- | res/values/colors.xml | 2 | ||||
-rw-r--r-- | res/values/dimens.xml | 3 | ||||
-rw-r--r-- | res/values/strings.xml | 3 |
12 files changed, 42 insertions, 23 deletions
diff --git a/res/drawable-hdpi/ic_voice_search.png b/res/drawable-hdpi/ic_voice_search.png Binary files differnew file mode 100644 index 000000000..6caf4a43d --- /dev/null +++ b/res/drawable-hdpi/ic_voice_search.png diff --git a/res/drawable-hdpi/shadow_contact_photo.png b/res/drawable-hdpi/shadow_contact_photo.png Binary files differnew file mode 100644 index 000000000..49cbb97dc --- /dev/null +++ b/res/drawable-hdpi/shadow_contact_photo.png diff --git a/res/drawable-mdpi/ic_voice_search.png b/res/drawable-mdpi/ic_voice_search.png Binary files differnew file mode 100644 index 000000000..e290f9277 --- /dev/null +++ b/res/drawable-mdpi/ic_voice_search.png diff --git a/res/drawable-mdpi/shadow_contact_photo.png b/res/drawable-mdpi/shadow_contact_photo.png Binary files differnew file mode 100644 index 000000000..4734bbd21 --- /dev/null +++ b/res/drawable-mdpi/shadow_contact_photo.png diff --git a/res/drawable-xhdpi/ic_voice_search.png b/res/drawable-xhdpi/ic_voice_search.png Binary files differnew file mode 100644 index 000000000..614758188 --- /dev/null +++ b/res/drawable-xhdpi/ic_voice_search.png diff --git a/res/drawable-xhdpi/shadow_contact_photo.png b/res/drawable-xhdpi/shadow_contact_photo.png Binary files differnew file mode 100644 index 000000000..1077ec1c8 --- /dev/null +++ b/res/drawable-xhdpi/shadow_contact_photo.png diff --git a/res/layout/new_dialtacts_activity.xml b/res/layout/new_dialtacts_activity.xml index 7845d0fef..b9d417b36 100644 --- a/res/layout/new_dialtacts_activity.xml +++ b/res/layout/new_dialtacts_activity.xml @@ -49,8 +49,18 @@ android:layout_width="40dp" android:padding="6dp" android:src="@drawable/ic_close_dk" + android:clickable="true" android:background="?android:attr/selectableItemBackground" android:visibility="gone" /> + <ImageView + android:id="@+id/voice_search_button" + android:layout_height="40dp" + android:layout_width="40dp" + android:padding="6dp" + android:src="@drawable/ic_voice_search" + android:clickable="true" + android:contentDescription="@string/description_start_voice_search" + android:background="?android:attr/selectableItemBackground" /> </LinearLayout> <FrameLayout android:layout_height="0dp" diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml index bf9020557..e82a4e2f1 100644 --- a/res/layout/phone_favorite_tile_view.xml +++ b/res/layout/phone_favorite_tile_view.xml @@ -16,14 +16,14 @@ <view xmlns:android="http://schemas.android.com/apk/res/android" android:background="@null" - android:paddingBottom="1dip" - android:paddingRight="1dip" - android:paddingEnd="1dip" + android:paddingBottom="1dp" + android:paddingRight="1dp" + android:paddingEnd="1dp" class="com.android.dialer.list.PhoneFavoriteTileView" > <RelativeLayout android:layout_width="match_parent" - android:layout_height="match_parent" > + android:layout_height="match_parent"> <com.android.contacts.common.widget.LayoutSuppressingImageView android:id="@+id/contact_tile_image" @@ -31,23 +31,29 @@ android:layout_height="match_parent" android:scaleType="centerCrop" /> + <View + android:id="@+id/shadow_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/shadow_contact_photo"/> + <TextView android:id="@+id/contact_tile_name" android:layout_width="match_parent" - android:layout_height="@dimen/contact_tile_shadowbox_height" - android:background="@color/contact_tile_shadow_box_color" + android:layout_height="@dimen/contact_tile_info_button_height_and_width" android:gravity="center_vertical" - android:textColor="@android:color/white" + android:textColor="@color/contact_tile_name_color" + android:fontFamily="sans-serif-light" android:singleLine="true" android:textSize="16sp" android:fadingEdge="horizontal" android:fadingEdgeLength="3dip" android:ellipsize="marquee" android:layout_alignParentBottom="true" - android:paddingLeft="8dip" - android:paddingRight="47dip" - android:paddingStart="8dip" - android:paddingEnd="47dip" + android:paddingLeft="8dp" + android:paddingRight="@dimen/contact_tile_info_button_height_and_width" + android:paddingStart="8dp" + android:paddingEnd="@dimen/contact_tile_info_button_height_and_width" android:textAlignment="viewStart" /> <View @@ -62,14 +68,14 @@ android:id="@id/contact_tile_secondary_button" android:src="@drawable/ic_contact_info" android:background="?android:attr/selectableItemBackground" - android:layout_height="@dimen/contact_tile_shadowbox_height" - android:layout_width="48dip" - android:paddingLeft="12dip" - android:paddingRight="12dip" - android:paddingStart="12dip" - android:paddingEnd="12dip" - android:paddingTop="12dip" - android:paddingBottom="12dip" + android:layout_height="@dimen/contact_tile_info_button_height_and_width" + android:layout_width="@dimen/contact_tile_info_button_height_and_width" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" diff --git a/res/menu/dialtacts_options_new.xml b/res/menu/dialtacts_options_new.xml index 92708fec0..b30697956 100644 --- a/res/menu/dialtacts_options_new.xml +++ b/res/menu/dialtacts_options_new.xml @@ -24,9 +24,6 @@ android:id="@+id/add_contact" android:title="@string/menu_newContact"/> <item - android:id="@+id/menu_show_hide_all_contacts" - android:title="@string/show_all_contacts" /> - <item android:id="@+id/menu_call_settings" android:title="@string/call_settings" android:orderInCategory="2" /> diff --git a/res/values/colors.xml b/res/values/colors.xml index 1f337a201..9cf7251a9 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -68,4 +68,6 @@ <!-- Text color of the search box --> <color name="searchbox_text_color">#d3d3d3</color> + <!-- Color of the contact name in favorite tiles --> + <color name="contact_tile_name_color">#f0f0f0</color> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index a89f8abfd..7b4c65e22 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -64,7 +64,8 @@ <dimen name="smartdial_confidence_hint_text_size">27dp</dimen> <!-- Favorites tile and recent call log padding --> - <dimen name="phone_contact_tile_divider_padding">3dp</dimen> + <dimen name="contact_tile_divider_padding">3dp</dimen> + <dimen name="contact_tile_info_button_height_and_width">36dp</dimen> <dimen name="favorites_row_top_padding">8dp</dimen> <dimen name="favorites_row_bottom_padding">8dp</dimen> <dimen name="favorites_row_start_padding">8dp</dimen> diff --git a/res/values/strings.xml b/res/values/strings.xml index 7d4a4d9b4..3845e2dd4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -452,6 +452,9 @@ --> <string name="description_call_log_unheard_voicemail">Unheard voicemail</string> + <!-- String describing the icon used to start a voice search --> + <string name="description_start_voice_search">Start voice search</string> + <!-- The string used to represent an unknown location for a phone number in the call log [CHAR LIMIT=3] --> <string name="call_log_empty_gecode">-</string> |