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 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:background="?android:attr/colorBackground" 22 android:orientation="vertical"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:paddingTop="16dp" 28 android:paddingStart="16dp" 29 android:paddingEnd="24dp" 30 android:clipChildren="false" 31 android:clipToPadding="false" 32 android:orientation="horizontal"> 33 34 <ImageView 35 android:id="@+id/new_call_log_promotion_card_icon" 36 android:layout_width="40dp" 37 android:layout_height="40dp" 38 android:layout_marginEnd="16dp" 39 android:importantForAccessibility="no"/> 40 41 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="8dp" 45 android:orientation="vertical"> 46 47 <TextView 48 android:id="@+id/new_call_log_promotion_card_title" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_marginBottom="12dp" 52 style="@style/Dialer.TextAppearance.Header2"/> 53 <TextView 54 android:id="@+id/new_call_log_promotion_card_details" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:layout_marginBottom="16dp" 58 android:lineSpacingExtra="8dp" 59 style="@style/Dialer.TextAppearance.Secondary"/> 60 <Button 61 android:id="@+id/new_call_log_promotion_card_ok" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_marginTop="6dp" 65 android:layout_marginBottom="2dp" 66 android:layout_gravity="end" 67 android:paddingLeft="14dp" 68 android:paddingRight="14dp" 69 android:text="@string/ok_got_it" 70 android:textSize="14sp"/> 71 </LinearLayout> 72 </LinearLayout> 73 74 <!-- The boundary line at the bottom --> 75 <View 76 android:layout_width="match_parent" 77 android:layout_height="1dp" 78 android:layout_marginTop="8dp" 79 android:background="#DBDBDB"/> 80</LinearLayout> 81