| <?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:layout_width="match_parent" |
| android:layout_height="@dimen/stream_item_large_height" |
| android:background="@color/car_card_dark"> |
| |
| <ImageView |
| android:id="@+id/media_player_background" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:alpha="0.1" |
| android:visibility="gone" |
| android:scaleType="centerCrop" /> |
| |
| <LinearLayout |
| android:id="@+id/stream_card_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:divider="@drawable/stream_media_card_divider" |
| android:showDividers="middle"> |
| |
| <LinearLayout |
| android:id="@+id/primary_action_container" |
| android:background="@drawable/dark_card_ripple" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/stream_card_keyline_1" |
| android:layout_marginEnd="@dimen/stream_card_keyline_1" |
| android:layout_marginBottom="@dimen/stream_media_text_margin" |
| android:orientation="vertical"> |
| <TextView |
| android:id="@+id/title" |
| style="@style/StreamBody1" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/stream_card_margin" |
| android:layout_marginEnd="16dp" |
| android:singleLine="true" |
| android:textColor="@color/car_body1_light" |
| android:ellipsize="end"/> |
| <TextView |
| android:id="@+id/subtitle" |
| style="@style/StreamBody2" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="8dp" |
| android:layout_marginEnd="16dp" |
| android:layout_marginBottom="2dp" |
| android:singleLine="true" |
| android:textColor="@color/car_body2_light" |
| android:ellipsize="end"/> |
| </LinearLayout> |
| |
| <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/skip_previous" |
| 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:scaleType="center" |
| android:background="@drawable/dark_card_ripple"/> |
| <com.android.car.overview.OverviewFabButton |
| android:id="@+id/play_pause" |
| 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" |
| android:background="?android:attr/selectableItemBackgroundBorderless"/> |
| <ImageButton |
| android:id="@+id/skip_next" |
| android:layout_width="@dimen/stream_card_action_button_size" |
| android:layout_height="@dimen/stream_card_action_button_size" |
| android:layout_alignParentEnd="true" |
| android:layout_centerVertical="true" |
| android:scaleType="center" |
| android:background="@drawable/dark_card_ripple"/> |
| </RelativeLayout> |
| </LinearLayout> |
| </FrameLayout> |