1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2018 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 18<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 xmlns:tools="http://schemas.android.com/tools" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"> 24 25 <com.android.pump.widget.UriImageView 26 android:id="@+id/activity_playlist_details_image_0" 27 android:layout_width="0dp" 28 android:layout_height="0dp" 29 android:scaleType="centerCrop" 30 app:layout_constraintTop_toTopOf="parent" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintEnd_toStartOf="@id/activity_playlist_details_image_1" 33 app:layout_constraintDimensionRatio="1:1" 34 tools:src="@tools:sample/backgrounds/scenic"/> 35 36 <com.android.pump.widget.UriImageView 37 android:id="@+id/activity_playlist_details_image_1" 38 android:layout_width="0dp" 39 android:layout_height="0dp" 40 android:scaleType="centerCrop" 41 app:layout_constraintTop_toTopOf="parent" 42 app:layout_constraintStart_toEndOf="@id/activity_playlist_details_image_0" 43 app:layout_constraintEnd_toEndOf="parent" 44 app:layout_constraintDimensionRatio="1:1" 45 tools:src="@tools:sample/backgrounds/scenic"/> 46 47 <com.android.pump.widget.UriImageView 48 android:id="@+id/activity_playlist_details_image_2" 49 android:layout_width="0dp" 50 android:layout_height="0dp" 51 android:scaleType="centerCrop" 52 app:layout_constraintTop_toBottomOf="@id/activity_playlist_details_image_0" 53 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_image_0" 54 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_image_0" 55 app:layout_constraintDimensionRatio="1:1" 56 tools:src="@tools:sample/backgrounds/scenic"/> 57 58 <com.android.pump.widget.UriImageView 59 android:id="@+id/activity_playlist_details_image_3" 60 android:layout_width="0dp" 61 android:layout_height="0dp" 62 android:scaleType="centerCrop" 63 app:layout_constraintTop_toBottomOf="@id/activity_playlist_details_image_1" 64 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_image_1" 65 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_image_1" 66 app:layout_constraintDimensionRatio="1:1" 67 tools:src="@tools:sample/backgrounds/scenic"/> 68 69 <com.google.android.material.appbar.AppBarLayout 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:background="@null" 73 app:layout_constraintTop_toTopOf="parent" 74 app:layout_constraintStart_toStartOf="parent" 75 app:layout_constraintEnd_toEndOf="parent" 76 app:elevation="0dp"> 77 78 <androidx.appcompat.widget.Toolbar 79 android:id="@+id/activity_playlist_details_toolbar" 80 android:layout_width="match_parent" 81 android:layout_height="?actionBarSize"/> 82 83 </com.google.android.material.appbar.AppBarLayout> 84 85 <com.android.pump.widget.UriImageView 86 android:id="@+id/activity_playlist_details_play" 87 android:layout_width="48dp" 88 android:layout_height="48dp" 89 app:layout_constraintTop_toTopOf="@id/activity_playlist_details_image_0" 90 app:layout_constraintBottom_toBottomOf="@id/activity_playlist_details_image_2" 91 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_image_0" 92 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_image_1" 93 app:srcCompat="@drawable/ic_play" 94 app:tint="?colorControlNormal" 95 96 android:clickable="true" 97 android:focusable="true" 98 android:foreground="?selectableItemBackground"/> 99 100 <android.view.View 101 android:layout_width="0dp" 102 android:layout_height="77dp" 103 android:background="@drawable/shadow" 104 app:layout_constraintBottom_toBottomOf="@id/activity_playlist_details_image_2" 105 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_image_0" 106 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_image_1"/> 107 108 <androidx.appcompat.widget.AppCompatTextView 109 android:id="@+id/activity_playlist_details_name" 110 android:layout_width="0dp" 111 android:layout_height="wrap_content" 112 android:layout_marginStart="24dp" 113 android:layout_marginEnd="24dp" 114 android:textSize="18sp" 115 android:maxLines="3" 116 android:ellipsize="end" 117 app:layout_constraintTop_toBottomOf="@id/activity_playlist_details_image_2" 118 app:layout_constraintStart_toStartOf="parent" 119 app:layout_constraintEnd_toEndOf="parent" 120 tools:text="Name"/> 121 122 <androidx.appcompat.widget.AppCompatTextView 123 android:id="@+id/activity_playlist_details_count" 124 android:layout_width="0dp" 125 android:layout_height="wrap_content" 126 android:layout_marginTop="4dp" 127 android:textSize="12sp" 128 android:maxLines="1" 129 android:ellipsize="end" 130 app:layout_constraintTop_toBottomOf="@id/activity_playlist_details_name" 131 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_name" 132 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_name" 133 tools:text="22 audios"/> 134 135 <androidx.recyclerview.widget.RecyclerView 136 android:id="@+id/activity_playlist_details_recycler_view" 137 android:layout_width="0dp" 138 android:layout_height="0dp" 139 android:layout_marginTop="4dp" 140 app:layout_constraintTop_toBottomOf="@id/activity_playlist_details_count" 141 app:layout_constraintBottom_toBottomOf="parent" 142 app:layout_constraintStart_toStartOf="@id/activity_playlist_details_count" 143 app:layout_constraintEnd_toEndOf="@id/activity_playlist_details_count" 144 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 145 tools:listitem="@layout/audio"/> 146 147</androidx.constraintlayout.widget.ConstraintLayout> 148