1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:background="@color/phone_theme" 18 android:layout_width="match_parent" 19 android:layout_height="@dimen/stream_item_large_height"> 20 <ImageView 21 android:id="@+id/background_image" 22 android:alpha="0.1" 23 android:layout_gravity="center" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:scaleType="centerCrop"/> 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:orientation="vertical"> 31 <!-- This LinearLayout ensures that the primary action only affects the top half of the 32 card and not where the action icons are. --> 33 <LinearLayout 34 android:id="@+id/primary_action_container" 35 android:background="@drawable/dark_card_ripple" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:orientation="vertical"> 39 <TextView 40 android:id="@+id/display_name" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="@dimen/stream_call_text_margin" 44 android:layout_marginEnd="@dimen/stream_call_text_margin" 45 android:layout_marginStart="@dimen/stream_call_text_margin" 46 style="@style/StreamBody1" 47 android:singleLine="true" 48 android:textColor="@color/car_body1_light" 49 android:ellipsize="end"/> 50 <LinearLayout 51 android:id="@+id/call_info" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_marginTop="@dimen/stream_item_text_top_margin" 55 android:layout_marginEnd="@dimen/stream_call_text_margin" 56 android:layout_marginStart="@dimen/stream_call_text_margin" 57 android:orientation="horizontal"> 58 <TextView 59 android:id="@+id/call_state" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:singleLine="true" 63 android:textColor="@color/stream_body2_lighter" 64 style="@style/StreamBody2"/> 65 <Chronometer 66 android:id="@+id/timer" 67 android:visibility="gone" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:textColor="@color/stream_body2_lighter" 71 style="@style/StreamBody2"/> 72 </LinearLayout> 73 </LinearLayout> 74 <View 75 android:layout_width="match_parent" 76 android:layout_height="1dp" 77 android:background="@color/car_list_divider_light" 78 android:layout_marginTop="@dimen/stream_call_text_margin" /> 79 <RelativeLayout 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_marginStart="@dimen/stream_content_keyline_1" 83 android:layout_marginEnd="@dimen/stream_content_keyline_1" 84 android:paddingTop="@dimen/stream_card_action_container_padding" 85 android:paddingBottom="@dimen/stream_card_action_container_padding" > 86 <ImageButton 87 android:id="@+id/mute_button" 88 android:background="@drawable/dark_card_ripple" 89 android:layout_width="@dimen/stream_card_action_button_size" 90 android:layout_height="@dimen/stream_card_action_button_size" 91 android:layout_alignParentStart="true" 92 android:layout_centerVertical="true" 93 android:visibility="gone" /> 94 <com.android.car.overview.OverviewFabButton 95 android:id="@+id/call_button" 96 android:layout_width="@dimen/stream_card_large_center_button_size" 97 android:layout_height="@dimen/stream_card_large_center_button_size" 98 android:layout_centerInParent="true" 99 android:scaleType="center" /> 100 </RelativeLayout> 101 </LinearLayout> 102 </FrameLayout> 103