1<!-- 2 ~ Copyright (C) 2024 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 17<!-- 18 ~ CopyEnd (C) 2024 The Android Open Source Project 19 ~ 20 ~ Licensed under the Apache License, Version 2.0 (the "License"); 21 ~ you may not use this file except in compliance with the License. 22 ~ You may obtain a copy of the License at 23 ~ 24 ~ http://www.apache.org/licenses/LICENSE-2.0 25 ~ 26 ~ Unless required by applicable law or agreed to in writing, software 27 ~ distributed under the License is distributed on an "AS IS" BASIS, 28 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 29 ~ See the License for the specific language governing permissions and 30 ~ limitations under the License. 31 --> 32 33<androidx.constraintlayout.widget.ConstraintLayout 34 xmlns:android="http://schemas.android.com/apk/res/android" 35 xmlns:app="http://schemas.android.com/apk/res-auto" 36 android:layout_height="wrap_content" 37 android:layout_width="match_parent" 38 android:paddingTop="@dimen/media_card_view_separation_margin" 39 android:paddingBottom="@dimen/media_card_view_separation_margin"> 40 41 <TextView 42 android:id="@+id/queue_list_item_title" 43 android:layout_height="wrap_content" 44 android:layout_width="0dp" 45 android:textAppearance="@style/TextAppearance.Car.Body.Small" 46 android:textColor="@color/car_on_surface" 47 android:maxLines="1" 48 android:ellipsize="end" 49 android:layout_marginEnd="@dimen/media_card_view_separation_margin" 50 app:layout_constraintStart_toStartOf="parent" 51 app:layout_constraintEnd_toStartOf="@id/thumbnail" 52 app:layout_constraintTop_toTopOf="@id/thumbnail" 53 app:layout_constraintBottom_toBottomOf="@id/thumbnail" 54 app:layout_constraintVertical_bias="0" 55 app:layout_constraintHorizontal_bias="0"/> 56 57 <TextView 58 android:id="@+id/queue_list_item_subtitle" 59 android:layout_height="wrap_content" 60 android:layout_width="0dp" 61 android:textAppearance="@style/TextAppearance.Car.Body.Small" 62 android:textColor="@color/media_card_subtitle_color" 63 android:maxLines="1" 64 android:ellipsize="end" 65 android:layout_marginEnd="@dimen/media_card_view_separation_margin" 66 app:layout_constraintStart_toStartOf="parent" 67 app:layout_constraintEnd_toStartOf="@id/thumbnail" 68 app:layout_constraintTop_toTopOf="@id/thumbnail" 69 app:layout_constraintBottom_toBottomOf="@id/thumbnail" 70 app:layout_constraintVertical_bias="1" 71 app:layout_constraintHorizontal_bias="0"/> 72 73 <ImageView 74 android:id="@+id/thumbnail" 75 android:layout_width="@dimen/media_card_queue_item_thumbnail_size" 76 android:layout_height="@dimen/media_card_queue_item_thumbnail_size" 77 android:background="@drawable/radius_8_background" 78 android:clipToOutline="true" 79 android:scaleType="centerCrop" 80 app:layout_constraintTop_toTopOf="parent" 81 app:layout_constraintBottom_toBottomOf="parent" 82 app:layout_constraintStart_toEndOf="@id/queue_list_item_title" 83 app:layout_constraintEnd_toEndOf="parent" 84 app:layout_constraintHorizontal_bias="1" /> 85</androidx.constraintlayout.widget.ConstraintLayout> 86