summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorChristine Chen <christinech@google.com>2013-09-20 18:08:58 -0700
committerChristine Chen <christinech@google.com>2013-09-24 10:46:57 -0700
commit9bead9c01ab09ebfbd1c2be8555d8c8d4e3cf6bd (patch)
tree618fd13537fcd98d0ec6c585df7e22407d3e9812 /res
parent99546e0a37b56097b9a868b638234687a9923ff6 (diff)
Adds star to indicate favorite contacts
- For squared tiles, stars will replace info icons when a contact is a favorite contact. And clicking on either star or info icon will bring up the quick contact card. Bug: 10862067 Change-Id: Ie0ad9e7e5969a70c3bafef5c2bb47fb84cd7ffdb
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_star_marked_as_fav.pngbin0 -> 1444 bytes
-rw-r--r--res/drawable-mdpi/ic_star_marked_as_fav.pngbin0 -> 964 bytes
-rw-r--r--res/drawable-xhdpi/ic_star_marked_as_fav.pngbin0 -> 1950 bytes
-rw-r--r--res/drawable-xxhdpi/ic_star_marked_as_fav.pngbin0 -> 2338 bytes
-rw-r--r--res/layout/phone_favorite_regular_row_view.xml14
-rw-r--r--res/layout/phone_favorite_tile_view.xml14
6 files changed, 28 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_star_marked_as_fav.png b/res/drawable-hdpi/ic_star_marked_as_fav.png
new file mode 100644
index 000000000..8a138c478
--- /dev/null
+++ b/res/drawable-hdpi/ic_star_marked_as_fav.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_star_marked_as_fav.png b/res/drawable-mdpi/ic_star_marked_as_fav.png
new file mode 100644
index 000000000..ee1b5ec1c
--- /dev/null
+++ b/res/drawable-mdpi/ic_star_marked_as_fav.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_star_marked_as_fav.png b/res/drawable-xhdpi/ic_star_marked_as_fav.png
new file mode 100644
index 000000000..372747a80
--- /dev/null
+++ b/res/drawable-xhdpi/ic_star_marked_as_fav.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_star_marked_as_fav.png b/res/drawable-xxhdpi/ic_star_marked_as_fav.png
new file mode 100644
index 000000000..3eeff4c05
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_star_marked_as_fav.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 c4c9c557a..b3c37d813 100644
--- a/res/layout/phone_favorite_regular_row_view.xml
+++ b/res/layout/phone_favorite_regular_row_view.xml
@@ -68,6 +68,20 @@
android:layout_marginStart="8dip"
android:layout_gravity="bottom" />
+ <ImageView
+ android:id="@+id/contact_favorite_star"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@id/contact_tile_quick"
+ android:layout_alignEnd="@id/contact_tile_quick"
+ android:layout_alignBottom="@id/contact_tile_quick"
+ android:layout_marginRight="7dip"
+ android:layout_marginEnd="7dip"
+ android:layout_marginBottom="7dip"
+ android:layout_centerVertical="true"
+ android:src="@drawable/ic_star_marked_as_fav"
+ android:visibility="gone" />
+
</RelativeLayout>
<LinearLayout
diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml
index 1117bdc88..1e79a109e 100644
--- a/res/layout/phone_favorite_tile_view.xml
+++ b/res/layout/phone_favorite_tile_view.xml
@@ -66,6 +66,20 @@
android:nextFocusRight="@+id/contact_tile_secondary_button"
android:background="?android:attr/selectableItemBackground" />
+ <ImageView
+ android:id="@+id/contact_favorite_star"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@id/contact_tile_image"
+ android:layout_alignEnd="@id/contact_tile_image"
+ android:layout_alignBottom="@id/contact_tile_image"
+ android:layout_marginRight="7dip"
+ android:layout_marginEnd="7dip"
+ android:layout_marginBottom="7dip"
+ android:src="@drawable/ic_star_marked_as_fav"
+ android:visibility="gone" />
+
+
<ImageButton
android:id="@id/contact_tile_secondary_button"
android:src="@drawable/ic_contact_info"