Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright 2016, The Android Open Source Project
      4 
      5   Licensed under the Apache License, Version 2.0 (the "License");
      6   you may not use this file except in compliance with the License.
      7   You may obtain a copy of the License at
      8 
      9       http://www.apache.org/licenses/LICENSE-2.0
     10 
     11   Unless required by applicable law or agreed to in writing, software
     12   distributed under the License is distributed on an "AS IS" BASIS,
     13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   See the License for the specific language governing permissions and
     15   limitations under the License.
     16 -->
     17 <FrameLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:animateLayoutChanges="true" >
     22 
     23     <com.android.car.media.CrossfadeImageView
     24         android:id="@+id/album_art"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         android:scaleType="centerCrop" />
     28 
     29     <View
     30         android:id="@+id/scrim"
     31         android:layout_width="match_parent"
     32         android:layout_height="match_parent"
     33         android:background="@android:color/black"
     34         android:alpha="@dimen/media_scrim_alpha" />
     35 
     36     <View
     37         android:layout_width="match_parent"
     38         android:layout_height="match_parent"
     39         android:background="@color/album_art_color_overlay" />
     40 
     41     <LinearLayout
     42         android:layout_marginTop="@dimen/lens_header_height"
     43         android:layout_width="match_parent"
     44         android:layout_height="match_parent"
     45         android:orientation="vertical" >
     46 
     47         <FrameLayout
     48             android:id="@+id/metadata"
     49             android:layout_width="@dimen/metadata_width"
     50             android:layout_height="0dp"
     51             android:layout_weight="1"
     52             android:layout_marginStart="@dimen/stream_content_keyline_1"
     53             android:layout_marginTop="@dimen/now_playing_metadata_top_margin"
     54             android:visibility="gone" >
     55 
     56             <LinearLayout
     57                 android:layout_gravity="top"
     58                 android:layout_width="match_parent"
     59                 android:layout_height="wrap_content"
     60                 android:orientation="vertical" >
     61 
     62                 <TextView
     63                     android:id="@+id/title"
     64                     android:layout_width="match_parent"
     65                     android:layout_height="wrap_content"
     66                     android:ellipsize="end"
     67                     android:fontFamily="sans-serif-medium"
     68                     android:maxLines="@integer/media_title_max_lines"
     69                     style="@style/CarHeadline1.Light" />
     70                 <TextView
     71                     android:id="@+id/artist"
     72                     android:layout_marginTop="@dimen/metadata_inter_line_space"
     73                     android:layout_width="match_parent"
     74                     android:layout_height="wrap_content"
     75                     android:ellipsize="end"
     76                     android:maxLines="@integer/media_artist_max_lines"
     77                     style="@style/CarHeadline1.Light" />
     78             </LinearLayout>
     79         </FrameLayout>
     80 
     81         <include layout="@layout/media_controls" />
     82     </LinearLayout>
     83 
     84     <include layout="@layout/initial_no_content" />
     85 </FrameLayout>
     86