From 316b4713b2f8f26f393ecc4bb4760512a4a9f096 Mon Sep 17 00:00:00 2001 From: Christine Chen Date: Mon, 15 Jul 2013 18:31:22 -0700 Subject: Adds Drag and Drop UI to the Dialer main view. - Adds drag and drop listner. - Changes the FavoritesTileAdapter to use an array stored in cache to populate the view. - Adds animation for drag and drop. - Adds swipe to delete an entry. Change-Id: I0717fb3d256b2ab2353f86a998de07edb24e9b4c --- res/layout/phone_favorite_regular_row_view.xml | 52 +++++++++++++++++++++--- res/layout/phone_favorite_tile_view.xml | 56 +++++++++++++++++++++++--- res/values/strings.xml | 4 ++ 3 files changed, 102 insertions(+), 10 deletions(-) (limited to 'res') diff --git a/res/layout/phone_favorite_regular_row_view.xml b/res/layout/phone_favorite_regular_row_view.xml index eda5a02c8..532e85854 100644 --- a/res/layout/phone_favorite_regular_row_view.xml +++ b/res/layout/phone_favorite_regular_row_view.xml @@ -18,14 +18,14 @@ + class="com.android.dialer.list.PhoneFavoriteRegularRowView"> + android:layout_height="match_parent" + android:focusable="true" + android:background="?android:attr/selectableItemBackground" > + + + + + + + diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml index e82a4e2f1..2865c2ade 100644 --- a/res/layout/phone_favorite_tile_view.xml +++ b/res/layout/phone_favorite_tile_view.xml @@ -16,14 +16,17 @@ + android:paddingBottom="1dip" + android:paddingRight="1dip" + android:paddingEnd="1dip" + class="com.android.dialer.list.PhoneFavoriteSquareTileView" > + android:layout_height="match_parent" + android:focusable="true" + android:background="?android:attr/selectableItemBackground" >> + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 06d0a1e82..307d56b28 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -606,4 +606,8 @@ All contacts All contacts + + Hidden from favorites + + Undo -- cgit v1.2.3