summaryrefslogtreecommitdiff
path: root/res/layout/phone_favorite_regular_row_view.xml
diff options
context:
space:
mode:
authorChristine Chen <christinech@google.com>2013-07-15 18:31:22 -0700
committerChristine Chen <christinech@google.com>2013-07-31 10:37:09 -0700
commit316b4713b2f8f26f393ecc4bb4760512a4a9f096 (patch)
treebd8e71ad2813c0861415cacdc062611d0fe556d2 /res/layout/phone_favorite_regular_row_view.xml
parent6091473941d277ed3746143c1ca9bffdfbe2bd94 (diff)
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
Diffstat (limited to 'res/layout/phone_favorite_regular_row_view.xml')
-rw-r--r--res/layout/phone_favorite_regular_row_view.xml52
1 files changed, 47 insertions, 5 deletions
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 @@
<view
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/contact_tile_frequent_phone"
- class="com.android.dialer.list.PhoneFavoriteRegularRowView"
- android:focusable="true"
- android:background="?android:attr/selectableItemBackground"
- android:nextFocusLeft="@+id/contact_tile_quick">
+ class="com.android.dialer.list.PhoneFavoriteRegularRowView">
<RelativeLayout
+ android:id="@+id/contact_favorite_card"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="match_parent"
+ android:focusable="true"
+ android:background="?android:attr/selectableItemBackground" >
<com.android.contacts.common.widget.LayoutSuppressingQuickContactBadge
android:id="@id/contact_tile_quick"
@@ -54,4 +54,46 @@
android:textAlignment="viewStart" />
</RelativeLayout>
+ <LinearLayout
+ android:id="@+id/favorite_remove_dialogue"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:gravity="center_vertical"
+ android:alpha="0.0"
+ android:visibility="gone">
+
+ <TextView
+ android:id="@+id/favorite_remove_dialogue_text"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ 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:singleLine="true"
+ android:layout_gravity="center_vertical"
+ android:textDirection="ltr"
+ android:textAlignment="viewStart" />
+
+ <TextView
+ android:id="@+id/favorite_remove_undo_button"
+ 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"/>
+
+ </LinearLayout>
</view>