summaryrefslogtreecommitdiffstats
path: root/res/layout/conversation_long_press_to_select_tip_view.xml
blob: dc0f3d077e73fbb8ad367ea42e7a23b4c78faecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013 Google Inc. -->
<com.android.mail.ui.ConversationLongPressTipView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/swiped_bg_color" >

    <LinearLayout
        android:id="@+id/swipeable_content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/conversation_item_background_selector"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginBottom="12dp"
            android:layout_marginTop="12dp"
            android:layout_weight="1"
            android:duplicateParentState="true"
            android:fontFamily="sans-serif-light"
            android:text="@string/long_press_to_select_tip"
            android:textColor="@color/teaser_main_text"
            android:textSize="16sp"
            style="@style/TeaserTextStyle" />

        <View
            android:id="@+id/dismiss_separator"
            android:layout_width="1dip"
            android:layout_height="match_parent"
            android:background="@color/teaser_main_text"
            android:layout_marginTop="16dp"
            android:layout_marginBottom="16dp"
            style="@style/DismissSeparatorStyle" />

        <ImageButton
            android:id="@+id/dismiss_button"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="?android:attr/selectableItemBackground"
            android:clickable="true"
            android:scaleType="center"
            android:contentDescription="@string/dismiss_tip_hover_text"
            android:src="@drawable/ic_cancel_holo_light"
            style="@style/DismissButtonStyle" />

    </LinearLayout>

</com.android.mail.ui.ConversationLongPressTipView>