summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorChristine Chen <christinech@google.com>2013-07-29 14:17:15 -0700
committerChristine Chen <christinech@google.com>2013-07-31 15:27:30 -0700
commit6b7bbff7aaae1e51d57c255c21a0ef1c4faf7655 (patch)
tree2102c57525a715ac5a95567f9a1f2fab6ce4230b /res
parenteafc8fb4088bf1803eb8cc4b4bfe311eb6e90b9c (diff)
Adds undo favorite removal dialogue redlines.
Change-Id: I2edcccdd4acdd3ff281132efc66e21def228002f
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_fav_undo_dk.pngbin0 -> 1324 bytes
-rw-r--r--res/drawable-mdpi/ic_fav_undo_dk.pngbin0 -> 962 bytes
-rw-r--r--res/drawable-xhdpi/ic_fav_undo_dk.pngbin0 -> 1784 bytes
-rw-r--r--res/layout/phone_favorite_regular_row_view.xml48
-rw-r--r--res/layout/phone_favorite_tile_view.xml60
-rw-r--r--res/values/colors.xml3
6 files changed, 68 insertions, 43 deletions
diff --git a/res/drawable-hdpi/ic_fav_undo_dk.png b/res/drawable-hdpi/ic_fav_undo_dk.png
new file mode 100644
index 000000000..1279114f2
--- /dev/null
+++ b/res/drawable-hdpi/ic_fav_undo_dk.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_fav_undo_dk.png b/res/drawable-mdpi/ic_fav_undo_dk.png
new file mode 100644
index 000000000..78a3437dd
--- /dev/null
+++ b/res/drawable-mdpi/ic_fav_undo_dk.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_fav_undo_dk.png b/res/drawable-xhdpi/ic_fav_undo_dk.png
new file mode 100644
index 000000000..ef0b84e42
--- /dev/null
+++ b/res/drawable-xhdpi/ic_fav_undo_dk.png
Binary files differ
diff --git a/res/layout/phone_favorite_regular_row_view.xml b/res/layout/phone_favorite_regular_row_view.xml
index 532e85854..137d3da60 100644
--- a/res/layout/phone_favorite_regular_row_view.xml
+++ b/res/layout/phone_favorite_regular_row_view.xml
@@ -28,7 +28,7 @@
android:background="?android:attr/selectableItemBackground" >
<com.android.contacts.common.widget.LayoutSuppressingQuickContactBadge
- android:id="@id/contact_tile_quick"
+ android:id="@+id/contact_tile_quick"
android:layout_width="64dip"
android:layout_height="64dip"
android:layout_alignParentLeft="true"
@@ -38,7 +38,7 @@
android:focusable="true" />
<TextView
- android:id="@+id/contact_tile_name"
+ android:id="@id/contact_tile_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dip"
@@ -52,6 +52,7 @@
android:fadingEdgeLength="3dip"
android:ellipsize="marquee"
android:textAlignment="viewStart" />
+
</RelativeLayout>
<LinearLayout
@@ -72,28 +73,39 @@
android:layout_weight="1"
android:text="@string/favorite_hidden"
android:ellipsize="marquee"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:layout_marginLeft="8dip"
- android:layout_marginStart="8dip"
+ android:fontFamily="sans-serif"
+ android:textStyle="italic"
+ android:textSize="14sp"
+ android:textColor="@color/undo_dialogue_text_color"
android:singleLine="true"
- android:layout_gravity="center_vertical"
+ android:gravity="center_vertical"
android:textDirection="ltr"
- android:textAlignment="viewStart" />
+ android:textAlignment="center" />
- <TextView
+ <LinearLayout
android:id="@+id/favorite_remove_undo_button"
+ android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_weight="0.5"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:ellipsize="marquee"
- android:singleLine="true"
- android:text="@string/favorite_hidden_undo"
- android:layout_marginLeft="8dip"
- android:layout_marginStart="8dip"
- android:gravity="end"
- android:layout_gravity="center_vertical"
- android:clickable="true"/>
+ android:clickable="true"
+ android:layout_marginRight="30dp"
+ android:gravity="center_vertical">
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:src="@drawable/ic_fav_undo_dk"/>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fontFamily="sans-serif-light"
+ android:textSize="13sp"
+ android:ellipsize="marquee"
+ android:singleLine="true"
+ android:text="@string/favorite_hidden_undo"
+ android:textColor="@color/undo_dialogue_text_color"
+ android:textAlignment="center"/>
+ </LinearLayout>
</LinearLayout>
</view>
diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml
index 2865c2ade..6242b96a2 100644
--- a/res/layout/phone_favorite_tile_view.xml
+++ b/res/layout/phone_favorite_tile_view.xml
@@ -15,18 +15,17 @@
-->
<view
xmlns:android="http://schemas.android.com/apk/res/android"
- android:background="@null"
android:paddingBottom="1dip"
android:paddingRight="1dip"
android:paddingEnd="1dip"
+ android:background="@color/background_dialer_light"
class="com.android.dialer.list.PhoneFavoriteSquareTileView" >
<RelativeLayout
android:id="@+id/contact_tile_favorite_card"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:focusable="true"
- android:background="?android:attr/selectableItemBackground" >>
+ android:focusable="true">
<com.android.contacts.common.widget.LayoutSuppressingImageView
android:id="@+id/contact_tile_image"
@@ -99,34 +98,45 @@
<TextView
android:id="@+id/favorite_tile_remove_dialogue_text"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_weight="1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:text="@string/favorite_hidden"
android:ellipsize="marquee"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:layout_marginLeft="8dip"
- android:layout_marginStart="8dip"
- android:singleLine="true"
- android:layout_gravity="center_horizontal"
+ android:fontFamily="sans-serif"
+ android:textStyle="italic"
+ android:textSize="14sp"
+ android:textColor="@color/undo_dialogue_text_color"
+ android:lines="2"
+ android:paddingTop="22dp"
android:textDirection="ltr"
- android:textAlignment="viewStart" />
+ android:textAlignment="center" />
- <TextView
+ <LinearLayout
android:id="@+id/favorite_tile_remove_undo_button"
- android:layout_width="wrap_content"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_weight="0.5"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:ellipsize="marquee"
- android:singleLine="true"
- android:text="@string/favorite_hidden_undo"
- android:layout_marginLeft="8dip"
- android:layout_marginStart="8dip"
- android:gravity="end"
- android:layout_gravity="center_horizontal"
- android:clickable="true"/>
+ android:layout_alignParentLeft="true"
+ android:clickable="true"
+ android:layout_weight="1"
+ android:layout_gravity="bottom">
- </LinearLayout>
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:src="@drawable/ic_fav_undo_dk"/>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fontFamily="sans-serif-light"
+ android:textSize="13sp"
+ android:ellipsize="marquee"
+ android:singleLine="true"
+ android:text="@string/favorite_hidden_undo"
+ android:textColor="@color/undo_dialogue_text_color"
+ android:textAlignment="center"/>
+ </LinearLayout>
+ </LinearLayout>
</view>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 2fc78b895..085817ea6 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -71,4 +71,7 @@
<!-- Color of the contact name in favorite tiles -->
<color name="contact_tile_name_color">#f0f0f0</color>
+
+ <!-- Undo dialogue color -->
+ <color name="undo_dialogue_text_color">#4d4d4d</color>
</resources>