Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (c) 2013 Google Inc. -->
      3 <com.android.mail.ui.ConversationPhotoTeaserView
      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         <ImageView
     17             android:id="@+id/arrow"
     18             android:layout_width="48dp"
     19             android:layout_height="wrap_content"
     20             android:layout_marginBottom="12dp"
     21             android:layout_marginLeft="16dp"
     22             android:layout_marginRight="12dp"
     23             android:duplicateParentState="true"
     24             android:src="@drawable/ic_arrow"
     25             android:visibility="invisible" />
     26 
     27         <TextView
     28             android:id="@+id/text"
     29             android:layout_width="0dp"
     30             android:layout_height="wrap_content"
     31             android:layout_gravity="center_vertical"
     32             android:layout_marginBottom="12dp"
     33             android:layout_marginTop="12dp"
     34             android:layout_weight="1"
     35             android:duplicateParentState="true"
     36             android:fontFamily="sans-serif-light"
     37             android:text="@string/conversation_photo_welcome_text"
     38             android:textColor="@color/teaser_main_text"
     39             android:textSize="16sp" />
     40 
     41         <View
     42             android:id="@+id/dismiss_separator"
     43             android:layout_width="1dip"
     44             android:layout_height="match_parent"
     45             android:background="@color/teaser_main_text"
     46             android:layout_marginTop="16dp"
     47             android:layout_marginBottom="16dp"
     48             android:layout_marginLeft="16dp"/>
     49 
     50         <ImageButton
     51             android:id="@+id/dismiss_button"
     52             android:layout_width="wrap_content"
     53             android:layout_height="match_parent"
     54             android:background="?android:attr/selectableItemBackground"
     55             android:clickable="true"
     56             android:scaleType="center"
     57             android:contentDescription="@string/dismiss_tip_hover_text"
     58             android:src="@drawable/ic_cancel_holo_light"
     59             style="@style/DismissButtonStyle" />
     60 
     61         <include layout="@layout/teaser_right_edge" />
     62     </LinearLayout>
     63 
     64 </com.android.mail.ui.ConversationPhotoTeaserView>
     65