| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 Google Inc. |
| Licensed to The Android Open Source Project. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/conversation_tip_swipeable_content" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@color/tip_teaser_bg"> |
| |
| <ImageView |
| android:id="@+id/conversation_tip_icon1" |
| android:layout_width="40dp" |
| android:layout_height="40dp" |
| android:layout_gravity="center_vertical" |
| android:scaleType="center" |
| style="@style/TeaserStartMargin" /> |
| |
| <TextView |
| android:id="@+id/conversation_tip_text" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:layout_weight="1" |
| android:paddingTop="16dp" |
| android:paddingBottom="16dp" |
| android:textColor="@color/tip_teaser_text" |
| android:textSize="16sp" |
| style="@style/TeaserStartMargin" /> |
| |
| <ImageView |
| android:id="@+id/dismiss_icon" |
| android:layout_width="56dp" |
| android:layout_height="match_parent" |
| android:layout_gravity="center_vertical" |
| android:contentDescription="@string/dismiss_tip_hover_text" |
| android:background="?android:attr/selectableItemBackground" |
| android:scaleType="center" |
| android:src="@drawable/ic_cancel_24dp" /> |
| |
| </LinearLayout> |