| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 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="match_parent" |
| android:animateLayoutChanges="true" > |
| |
| <com.android.car.media.CrossfadeImageView |
| android:id="@+id/album_art" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:scaleType="centerCrop" /> |
| |
| <View |
| android:id="@+id/scrim" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@android:color/black" |
| android:alpha="@dimen/media_scrim_alpha" /> |
| |
| <View |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/album_art_color_overlay" /> |
| |
| <LinearLayout |
| android:layout_marginTop="@dimen/lens_header_height" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" > |
| |
| <FrameLayout |
| android:id="@+id/metadata" |
| android:layout_width="@dimen/metadata_width" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:layout_marginStart="@dimen/stream_content_keyline_1" |
| android:layout_marginTop="@dimen/now_playing_metadata_top_margin" |
| android:visibility="gone" > |
| |
| <LinearLayout |
| android:layout_gravity="top" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif-medium" |
| android:maxLines="@integer/media_title_max_lines" |
| style="@style/CarHeadline1.Light" /> |
| <TextView |
| android:id="@+id/artist" |
| android:layout_marginTop="@dimen/metadata_inter_line_space" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="@integer/media_artist_max_lines" |
| style="@style/CarHeadline1.Light" /> |
| </LinearLayout> |
| </FrameLayout> |
| |
| <include layout="@layout/media_controls" /> |
| </LinearLayout> |
| |
| <include layout="@layout/initial_no_content" /> |
| </FrameLayout> |