1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2013 Google Inc. 4 Licensed to The Android Open Source Project. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 --> 18 <merge xmlns:android="http://schemas.android.com/apk/res/android"> 19 <include layout="@layout/conversation_message_header" 20 android:id="@+id/snap_header" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 style="@style/ConversationViewPaddingStyle" 24 android:layout_gravity="top" 25 android:visibility="gone"/> 26 27 <com.android.mail.ui.ActionableToastBar 28 android:id="@+id/new_message_notification_bar" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_gravity="bottom|start" 32 android:layout_marginLeft="@dimen/conversation_view_snack_bar_margin" 33 android:layout_marginRight="@dimen/conversation_view_snack_bar_margin" 34 android:layout_marginBottom="@dimen/conversation_view_snack_bar_margin" 35 android:background="@color/snack_bar_background_color" 36 android:clickable="true" 37 android:visibility="gone"> 38 39 <!-- These children are visible when description and action text fit on one line --> 40 <LinearLayout 41 android:layout_width="match_parent" 42 android:layout_height="wrap_content" 43 android:orientation="horizontal"> 44 45 <TextView 46 android:id="@+id/description_text" 47 android:layout_width="0dp" 48 android:layout_height="wrap_content" 49 android:layout_gravity="center_vertical" 50 android:layout_weight="1" 51 android:paddingTop="@dimen/snack_bar_margin_vertical" 52 android:paddingBottom="@dimen/snack_bar_margin_vertical" 53 android:textColor="@android:color/white" 54 style="@style/SnackBarDescriptionTextStyle" /> 55 56 <TextView 57 android:id="@+id/action_text" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_gravity="center_vertical" 61 android:paddingTop="@dimen/snack_bar_margin_vertical" 62 android:paddingBottom="@dimen/snack_bar_margin_vertical" 63 android:textAllCaps="true" 64 android:textColor="@color/snack_bar_action_text_color" 65 style="@style/SnackBarActionTextStyle"/> 66 </LinearLayout> 67 </com.android.mail.ui.ActionableToastBar> 68 </merge> 69