1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2019, 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/item_container"
20    android:layout_width="match_parent"
21    android:layout_height="@dimen/queue_list_item_height"
22    android:paddingEnd="@dimen/queue_list_item_padding_x"
23    android:gravity="center_vertical"
24    android:background="?android:attr/selectableItemBackground">
25
26    <FrameLayout
27        android:id="@+id/thumbnail_container"
28        android:layout_width="@dimen/queue_list_item_thumbnail_container_width"
29        android:layout_height="wrap_content"
30        android:paddingStart="@dimen/queue_list_item_padding_x">
31        <ImageView
32            android:id="@+id/thumbnail"
33            android:layout_width="@dimen/queue_list_item_thumbnail_size"
34            android:layout_height="@dimen/queue_list_item_thumbnail_size"
35            android:scaleType="centerCrop"
36            style="@style/MediaIconContainerStyle"/>
37    </FrameLayout>
38
39    <Space
40        android:id="@+id/spacer"
41        android:layout_width="@dimen/queue_list_item_spacer_width"
42        android:layout_height="wrap_content"/>
43
44    <LinearLayout
45        android:id="@+id/queue_list_item_titles_container"
46        style="@style/QueueListItemTitlesContainerStyle">
47        <TextView
48            android:id="@+id/queue_list_item_title"
49            style="@style/QueueListItemTitleStyle"/>
50        <TextView
51            android:id="@+id/queue_list_item_subtitle"
52            style="@style/QueueListItemSubtitleStyle"/>
53    </LinearLayout>
54
55    <TextView
56        android:id="@+id/current_time"
57        android:layout_width="wrap_content"
58        android:layout_height="wrap_content"
59        android:layout_marginStart="@dimen/queue_list_item_title_time_margin"
60        style="@style/QueueListItemTimeStyle"/>
61
62    <TextView
63        android:id="@+id/separator"
64        android:layout_width="wrap_content"
65        android:layout_height="wrap_content"
66        android:text="@string/slash_separator"
67        style="@style/QueueListItemTimeStyle"/>
68
69    <TextView
70        android:id="@+id/max_time"
71        android:layout_width="wrap_content"
72        android:layout_height="wrap_content"
73        style="@style/QueueListItemTimeStyle"/>
74
75    <ImageView
76        android:id="@+id/now_playing_icon"
77        android:src="@drawable/ic_equalizer"
78        android:layout_width="@dimen/media_browse_list_item_arrow_size"
79        android:layout_height="@dimen/media_browse_list_item_arrow_size"
80        android:layout_gravity="center_vertical"
81        android:scaleType="centerCrop"/>
82
83</LinearLayout>
84