Update syles for swipe leave behind.
fixes b/6926116 need visual design for swipe
Change-Id: I17983d454f8c12549d8ff8a6b65ed047f11324df
diff --git a/res/layout/background.xml b/res/layout/background.xml
index 84b03a5..9ee618c 100644
--- a/res/layout/background.xml
+++ b/res/layout/background.xml
@@ -16,10 +16,7 @@
limitations under the License.
-->
<View xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/background"
- android:layout_width="match_parent"
- android:minHeight="@dimen/conversation_item_height"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:paddingLeft="16dip"
- android:background="@color/leaveBehindBackground" />
\ No newline at end of file
+ android:id="@+id/background"
+ android:layout_width="match_parent"
+ android:minHeight="@dimen/conversation_item_height"
+ android:background="@drawable/swiped_bg" />
\ No newline at end of file
diff --git a/res/layout/swipe_leavebehind.xml b/res/layout/swipe_leavebehind.xml
index ea69286..8461be3 100644
--- a/res/layout/swipe_leavebehind.xml
+++ b/res/layout/swipe_leavebehind.xml
@@ -18,9 +18,7 @@
<com.android.mail.ui.LeaveBehindItem xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="4dip"
- android:layout_marginRight="4dip"
- android:background="@color/leaveBehindBackground"
+ android:background="@drawable/swiped_bg"
android:clickable="true"
android:gravity="center_vertical"
android:minHeight="@dimen/conversation_item_height"
@@ -29,30 +27,28 @@
<TextView
android:id="@+id/undo_descriptionview"
android:layout_width="0dip"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
- android:gravity="center_vertical"
- android:paddingLeft="16dip"
android:singleLine="true"
android:text="@string/no_conversations"
android:textColor="@android:color/white"
- android:textSize="16sp" />
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:layout_marginLeft="16dip" />
<View
android:id="@+id/undo_separator"
android:layout_width="1dip"
android:layout_height="match_parent"
- android:layout_marginBottom="10dip"
+ android:layout_marginBottom="20dip"
android:layout_marginRight="12dip"
- android:layout_marginTop="10dip"
- android:background="#aaaaaa" />
+ android:layout_marginTop="20dip"
+ android:background="@android:color/white" />
<ImageView
android:id="@+id/undo_icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_gravity="center_vertical"
android:layout_marginRight="8dip"
android:src="@drawable/ic_menu_revert_holo_dark" />
@@ -61,10 +57,11 @@
style="@style/UndoTextStyle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:gravity="center_vertical"
android:paddingRight="16dip"
android:text="@string/undo"
android:textAllCaps="true"
- android:clickable="true" />
+ android:clickable="true"
+ android:gravity="center_vertical"
+ android:textColor="@android:color/white" />
</com.android.mail.ui.LeaveBehindItem>
\ No newline at end of file