blob: 3d58b10c675f776e3742a8405afb286ece762c59 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@color/phone_theme"
android:layout_width="match_parent"
android:layout_height="@dimen/stream_item_large_height">
<ImageView
android:id="@+id/background_image"
android:alpha="0.1"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- This LinearLayout ensures that the primary action only affects the top half of the
card and not where the action icons are. -->
<LinearLayout
android:id="@+id/primary_action_container"
android:background="@drawable/dark_card_ripple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/display_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/stream_call_text_margin"
android:layout_marginEnd="@dimen/stream_call_text_margin"
android:layout_marginStart="@dimen/stream_call_text_margin"
style="@style/StreamBody1"
android:singleLine="true"
android:textColor="@color/car_body1_light"
android:ellipsize="end"/>
<LinearLayout
android:id="@+id/call_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/stream_item_text_top_margin"
android:layout_marginEnd="@dimen/stream_call_text_margin"
android:layout_marginStart="@dimen/stream_call_text_margin"
android:orientation="horizontal">
<TextView
android:id="@+id/call_state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="@color/stream_body2_lighter"
style="@style/StreamBody2"/>
<Chronometer
android:id="@+id/timer"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/stream_body2_lighter"
style="@style/StreamBody2"/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/car_list_divider_light"
android:layout_marginTop="@dimen/stream_call_text_margin" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/stream_content_keyline_1"
android:layout_marginEnd="@dimen/stream_content_keyline_1"
android:paddingTop="@dimen/stream_card_action_container_padding"
android:paddingBottom="@dimen/stream_card_action_container_padding" >
<ImageButton
android:id="@+id/mute_button"
android:background="@drawable/dark_card_ripple"
android:layout_width="@dimen/stream_card_action_button_size"
android:layout_height="@dimen/stream_card_action_button_size"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:visibility="gone" />
<com.android.car.overview.OverviewFabButton
android:id="@+id/call_button"
android:layout_width="@dimen/stream_card_large_center_button_size"
android:layout_height="@dimen/stream_card_large_center_button_size"
android:layout_centerInParent="true"
android:scaleType="center" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>