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     <View
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent"
     26         android:background="@color/album_art_color_overlay" />
     27 
     28     <LinearLayout
     29         android:layout_marginTop="@dimen/lens_header_height"
     30         android:layout_width="match_parent"
     31         android:layout_height="match_parent"
     32         android:orientation="vertical" >
     33 
     34         <FrameLayout
     35             android:id="@+id/metadata"
     36             android:layout_width="@dimen/metadata_width"
     37             android:layout_height="0dp"
     38             android:layout_weight="1"
     39             android:layout_marginStart="@dimen/stream_content_keyline_1"
     40             android:layout_marginTop="@dimen/now_playing_metadata_top_margin"
     41             android:visibility="gone" >
     42 
     43             <LinearLayout
     44                 android:layout_gravity="top"
     45                 android:layout_width="match_parent"
     46                 android:layout_height="wrap_content"
     47                 android:orientation="vertical" >
     48 
     49                 <TextView
     50                     android:id="@+id/title"
     51                     android:layout_width="match_parent"
     52                     android:layout_height="wrap_content"
     53                     android:ellipsize="end"
     54                     android:fontFamily="sans-serif-medium"
     55                     android:maxLines="2"
     56                     style="@style/CarHeadline1.Light" />
     57                 <TextView
     58                     android:id="@+id/artist"
     59                     android:layout_marginTop="@dimen/metadata_inter_line_space"
     60                     android:layout_width="match_parent"
     61                     android:layout_height="wrap_content"
     62                     android:ellipsize="end"
     63                     android:singleLine="true"
     64                     style="@style/CarHeadline1.Light" />
     65             </LinearLayout>
     66         </FrameLayout>
     67 
     68         <include layout="@layout/media_controls" />
     69     </LinearLayout>
     70 
     71     <include layout="@layout/initial_no_content" />
     72 </FrameLayout>
     73