• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    </FrameLayout>
37
38    <Space
39        android:id="@+id/spacer"
40        android:layout_width="@dimen/queue_list_item_spacer_width"
41        android:layout_height="wrap_content"/>
42
43    <LinearLayout
44        android:id="@+id/queue_list_item_titles_container"
45        style="@style/QueueListItemTitlesContainerStyle">
46        <TextView
47            android:id="@+id/queue_list_item_title"
48            style="@style/QueueListItemTitleStyle"/>
49        <TextView
50            android:id="@+id/queue_list_item_subtitle"
51            style="@style/QueueListItemSubtitleStyle"/>
52    </LinearLayout>
53
54    <TextView
55        android:id="@+id/current_time"
56        android:layout_width="wrap_content"
57        android:layout_height="wrap_content"
58        android:layout_marginStart="@dimen/queue_list_item_title_time_margin"
59        style="@style/QueueListItemTimeStyle"/>
60
61    <TextView
62        android:id="@+id/separator"
63        android:layout_width="wrap_content"
64        android:layout_height="wrap_content"
65        android:text="@string/slash_separator"
66        style="@style/QueueListItemTimeStyle"/>
67
68    <TextView
69        android:id="@+id/max_time"
70        android:layout_width="wrap_content"
71        android:layout_height="wrap_content"
72        style="@style/QueueListItemTimeStyle"/>
73
74    <ImageView
75        android:id="@+id/now_playing_icon"
76        android:src="@drawable/ic_equalizer"
77        android:layout_width="@dimen/media_browse_list_item_arrow_size"
78        android:layout_height="@dimen/media_browse_list_item_arrow_size"
79        android:layout_gravity="center_vertical"
80        android:scaleType="centerCrop"/>
81
82</LinearLayout>
83