Alice Yang | c556773 | 2013-07-29 18:34:51 -0700 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (c) 2013 Google Inc. --> |
| 3 | <com.android.mail.ui.ConversationLongPressTipView |
| 4 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 5 | android:layout_width="match_parent" |
| 6 | android:layout_height="wrap_content" |
| 7 | android:background="@color/swiped_bg_color" > |
| 8 | |
| 9 | <LinearLayout |
| 10 | android:id="@+id/swipeable_content" |
| 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" |
| 13 | android:background="@drawable/conversation_read_selector" |
| 14 | android:orientation="horizontal" > |
| 15 | |
| 16 | <TextView |
| 17 | android:id="@+id/text" |
| 18 | android:layout_width="0dp" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:layout_gravity="center_vertical" |
| 21 | android:layout_marginBottom="12dp" |
| 22 | android:layout_marginTop="12dp" |
| 23 | android:layout_marginLeft="16dp" |
| 24 | android:layout_marginStart="16dp" |
| 25 | android:layout_weight="1" |
| 26 | android:duplicateParentState="true" |
| 27 | android:fontFamily="sans-serif-light" |
| 28 | android:text="@string/long_press_to_select_tip" |
| 29 | android:textColor="@color/teaser_main_text" |
| 30 | android:textSize="16sp" /> |
| 31 | |
| 32 | <View |
| 33 | android:id="@+id/dismiss_separator" |
| 34 | android:layout_width="1dip" |
| 35 | android:layout_height="match_parent" |
| 36 | android:background="@color/teaser_main_text" |
| 37 | android:layout_marginTop="16dp" |
| 38 | android:layout_marginBottom="16dp" |
| 39 | android:layout_marginLeft="16dp" |
| 40 | android:layout_marginStart="16dp" /> |
| 41 | |
| 42 | <ImageButton |
| 43 | android:id="@+id/dismiss_button" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="match_parent" |
| 46 | android:background="?android:attr/selectableItemBackground" |
| 47 | android:clickable="true" |
| 48 | android:paddingLeft="20dip" |
| 49 | android:paddingStart="20dip" |
| 50 | android:paddingRight="28dip" |
| 51 | android:paddingEnd="28dip" |
| 52 | android:scaleType="center" |
| 53 | android:contentDescription="@string/dismiss_tip_hover_text" |
| 54 | android:src="@drawable/ic_cancel_holo_light" /> |
| 55 | </LinearLayout> |
| 56 | |
| 57 | </com.android.mail.ui.ConversationLongPressTipView> |