Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 The Android Open Source Project
      3 
      4 Licensed under the Apache License, Version 2.0 (the "License");
      5 you may not use this file except in compliance with the License.
      6 You may obtain a copy of the License at
      7 
      8   http://www.apache.org/licenses/LICENSE-2.0
      9 
     10 Unless required by applicable law or agreed to in writing, software
     11 distributed under the License is distributed on an "AS IS" BASIS,
     12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 See the License for the specific language governing permissions and
     14 limitations under the License.
     15 -->
     16 <FrameLayout
     17         xmlns:android="http://schemas.android.com/apk/res/android"
     18         android:layout_width="match_parent"
     19         android:layout_height="@dimen/stream_item_large_height"
     20         android:background="@color/car_card_dark">
     21 
     22     <ImageView
     23             android:id="@+id/media_player_background"
     24             android:layout_width="match_parent"
     25             android:layout_height="match_parent"
     26             android:alpha="0.1"
     27             android:visibility="gone"
     28             android:scaleType="centerCrop" />
     29 
     30     <LinearLayout
     31             android:id="@+id/stream_card_container"
     32             android:layout_width="match_parent"
     33             android:layout_height="match_parent"
     34             android:orientation="vertical"
     35             android:divider="@drawable/stream_media_card_divider"
     36             android:showDividers="middle">
     37 
     38         <LinearLayout
     39                 android:id="@+id/primary_action_container"
     40                 android:background="@drawable/dark_card_ripple"
     41                 android:layout_width="match_parent"
     42                 android:layout_height="wrap_content"
     43                 android:layout_marginStart="@dimen/stream_card_keyline_1"
     44                 android:layout_marginEnd="@dimen/stream_card_keyline_1"
     45                 android:layout_marginBottom="@dimen/stream_media_text_margin"
     46                 android:orientation="vertical">
     47             <TextView
     48                     android:id="@+id/title"
     49                     style="@style/StreamBody1"
     50                     android:layout_width="wrap_content"
     51                     android:layout_height="wrap_content"
     52                     android:layout_marginTop="@dimen/stream_card_margin"
     53                     android:layout_marginEnd="16dp"
     54                     android:singleLine="true"
     55                     android:textColor="@color/car_body1_light"
     56                     android:ellipsize="end"/>
     57             <TextView
     58                     android:id="@+id/subtitle"
     59                     style="@style/StreamBody2"
     60                     android:layout_width="wrap_content"
     61                     android:layout_height="wrap_content"
     62                     android:layout_marginTop="8dp"
     63                     android:layout_marginEnd="16dp"
     64                     android:layout_marginBottom="2dp"
     65                     android:singleLine="true"
     66                     android:textColor="@color/car_body2_light"
     67                     android:ellipsize="end"/>
     68         </LinearLayout>
     69 
     70         <RelativeLayout
     71                 android:layout_width="match_parent"
     72                 android:layout_height="wrap_content"
     73                 android:layout_marginStart="@dimen/stream_content_keyline_1"
     74                 android:layout_marginEnd="@dimen/stream_content_keyline_1"
     75                 android:paddingTop="@dimen/stream_card_action_container_padding"
     76                 android:paddingBottom="@dimen/stream_card_action_container_padding">
     77             <ImageButton
     78                     android:id="@+id/skip_previous"
     79                     android:layout_width="@dimen/stream_card_action_button_size"
     80                     android:layout_height="@dimen/stream_card_action_button_size"
     81                     android:layout_alignParentStart="true"
     82                     android:layout_centerVertical="true"
     83                     android:scaleType="center"
     84                     android:background="@drawable/dark_card_ripple"/>
     85             <com.android.car.overview.OverviewFabButton
     86                     android:id="@+id/play_pause"
     87                     android:layout_width="@dimen/stream_card_large_center_button_size"
     88                     android:layout_height="@dimen/stream_card_large_center_button_size"
     89                     android:layout_centerInParent="true"
     90                     android:scaleType="center"
     91                     android:background="?android:attr/selectableItemBackgroundBorderless"/>
     92             <ImageButton
     93                     android:id="@+id/skip_next"
     94                     android:layout_width="@dimen/stream_card_action_button_size"
     95                     android:layout_height="@dimen/stream_card_action_button_size"
     96                     android:layout_alignParentEnd="true"
     97                     android:layout_centerVertical="true"
     98                     android:scaleType="center"
     99                     android:background="@drawable/dark_card_ripple"/>
    100         </RelativeLayout>
    101     </LinearLayout>
    102 </FrameLayout>
    103