1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2018 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:paddingTop="24dp" 23 android:paddingBottom="8dp" 24 android:paddingStart="16dp" 25 android:paddingEnd="24dp" 26 android:background="#FAFAFA" 27 android:clickable="true" 28 android:elevation="8dp" 29 android:orientation="horizontal" 30 android:visibility="gone" 31 app:behavior_hideable="true" 32 app:behavior_skipCollapsed="true" 33 app:layout_behavior="android.support.design.widget.BottomSheetBehavior" 34 app:layout_insetEdge="bottom"> 35 36 <ImageView 37 android:id="@+id/promotion_icon" 38 android:layout_width="36dp" 39 android:layout_height="36dp" 40 android:tint="?android:attr/colorPrimary"/> 41 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:paddingStart="32dp" 45 android:orientation="vertical"> 46 <TextView 47 android:id="@+id/promotion_title" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 style="@style/Dialer.TextAppearance.Header2" 51 /> 52 <TextView 53 android:id="@+id/promotion_details" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:layout_marginTop="8dp" 57 android:layout_marginBottom="16dp" 58 android:lineSpacingMultiplier="1.5" 59 style="@style/Dialer.TextAppearance.Secondary"/> 60 <Button 61 android:id="@+id/ok_got_it" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_marginTop="8dp" 65 android:layout_marginBottom="8dp" 66 android:layout_gravity="end" 67 android:paddingStart="16dp" 68 android:paddingEnd="16dp" 69 android:fontFamily="sans-serif-medium" 70 android:stateListAnimator="@null" 71 android:text="@string/ok_got_it" 72 android:textColor="@android:color/white" 73 android:textSize="16sp"/> 74 </LinearLayout> 75 76</LinearLayout>