1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright 2015 Google Inc. All Rights Reserved. --> 3 4 <android.support.v7.widget.CardView 5 xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:card_view="http://schemas.android.com/apk/res-auto" 7 android:id="@+id/promo_card" 8 style="@style/CallLogCardStyle" 9 android:orientation="vertical" 10 android:gravity="center_vertical" 11 card_view:cardBackgroundColor="@color/visual_voicemail_promo_card_background"> 12 13 <LinearLayout 14 android:id="@+id/promo_card_content" 15 android:layout_width="match_parent" 16 android:layout_height="wrap_content" 17 android:orientation="vertical"> 18 19 <LinearLayout 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:paddingStart="@dimen/promo_card_start_padding" 23 android:paddingEnd="@dimen/promo_card_main_padding" 24 android:paddingTop="@dimen/promo_card_top_padding" 25 android:paddingBottom="@dimen/promo_card_main_padding" 26 android:orientation="horizontal" 27 android:gravity="top"> 28 29 <ImageView 30 android:id="@+id/promo_card_icon" 31 android:layout_width="@dimen/promo_card_icon_size" 32 android:layout_height="@dimen/promo_card_icon_size" 33 android:layout_gravity="top" 34 android:src="@drawable/ic_voicemail_24dp"/> 35 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:layout_marginStart="@dimen/promo_card_main_padding" 40 android:orientation="vertical" 41 android:gravity="center_vertical"> 42 43 <TextView 44 android:id="@+id/promo_card_header" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:layout_marginBottom="@dimen/promo_card_title_padding" 48 android:layout_gravity="center_vertical" 49 android:textColor="@color/background_dialer_white" 50 android:textSize="@dimen/call_log_primary_text_size" 51 android:textStyle="bold" 52 android:text="@string/visual_voicemail_title" 53 android:singleLine="false"/> 54 55 <TextView 56 android:id="@+id/promo_card_details" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:textColor="@color/background_dialer_white" 60 android:textSize="@dimen/call_log_secondary_text_size" 61 android:text="@string/visual_voicemail_text" 62 android:lineSpacingExtra="@dimen/promo_card_line_spacing" 63 android:singleLine="false"/> 64 </LinearLayout> 65 </LinearLayout> 66 67 <View 68 android:layout_width="match_parent" 69 android:layout_height="1dp" 70 android:background="@color/visual_voicemail_promo_card_divider"/> 71 72 <LinearLayout 73 android:layout_width="match_parent" 74 android:layout_height="wrap_content" 75 android:paddingEnd="@dimen/promo_card_action_end_padding" 76 android:paddingTop="@dimen/promo_card_action_vertical_padding" 77 android:paddingBottom="@dimen/promo_card_action_vertical_padding" 78 android:orientation="horizontal" 79 android:gravity="end"> 80 81 <TextView 82 android:id="@+id/settings_action" 83 style="@style/PromoCardActionStyle" 84 android:background="?android:attr/selectableItemBackground" 85 android:text="@string/visual_voicemail_settings" 86 android:nextFocusLeft="@+id/promo_card" 87 android:nextFocusRight="@+id/ok_action" 88 android:paddingEnd="@dimen/promo_card_action_between_padding"/> 89 90 <TextView 91 android:id="@+id/ok_action" 92 style="@style/PromoCardActionStyle" 93 android:background="?android:attr/selectableItemBackground" 94 android:text="@android:string/ok" 95 android:nextFocusLeft="@+id/settings_action" 96 android:nextFocusRight="@+id/promo_card"/> 97 </LinearLayout> 98 </LinearLayout> 99 </android.support.v7.widget.CardView> 100