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_artist_details_image"
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_toEndOf="parent"
33        app:layout_constraintDimensionRatio="1:1"
34        tools:src="@tools:sample/backgrounds/scenic"/>
35
36    <com.google.android.material.appbar.AppBarLayout
37        android:layout_width="match_parent"
38        android:layout_height="wrap_content"
39        android:background="@null"
40        app:layout_constraintTop_toTopOf="parent"
41        app:layout_constraintStart_toStartOf="parent"
42        app:layout_constraintEnd_toEndOf="parent"
43        app:elevation="0dp">
44
45        <androidx.appcompat.widget.Toolbar
46            android:id="@+id/activity_artist_details_toolbar"
47            android:layout_width="match_parent"
48            android:layout_height="?actionBarSize"/>
49
50    </com.google.android.material.appbar.AppBarLayout>
51
52    <com.android.pump.widget.UriImageView
53        android:id="@+id/activity_artist_details_play"
54        android:layout_width="48dp"
55        android:layout_height="48dp"
56        app:layout_constraintTop_toTopOf="@id/activity_artist_details_image"
57        app:layout_constraintBottom_toBottomOf="@id/activity_artist_details_image"
58        app:layout_constraintStart_toStartOf="@id/activity_artist_details_image"
59        app:layout_constraintEnd_toEndOf="@id/activity_artist_details_image"
60        app:srcCompat="@drawable/ic_play"
61        app:tint="?colorControlNormal"
62
63        android:clickable="true"
64        android:focusable="true"
65        android:foreground="?selectableItemBackground"/>
66
67    <android.view.View
68        android:layout_width="0dp"
69        android:layout_height="77dp"
70        android:background="@drawable/shadow"
71        app:layout_constraintBottom_toBottomOf="@id/activity_artist_details_image"
72        app:layout_constraintStart_toStartOf="@id/activity_artist_details_image"
73        app:layout_constraintEnd_toEndOf="@id/activity_artist_details_image"/>
74
75    <androidx.appcompat.widget.AppCompatTextView
76        android:id="@+id/activity_artist_details_name"
77        android:layout_width="0dp"
78        android:layout_height="wrap_content"
79        android:layout_marginStart="24dp"
80        android:layout_marginEnd="24dp"
81        android:textSize="18sp"
82        android:maxLines="3"
83        android:ellipsize="end"
84        app:layout_constraintTop_toBottomOf="@id/activity_artist_details_image"
85        app:layout_constraintStart_toStartOf="parent"
86        app:layout_constraintEnd_toEndOf="parent"
87        tools:text="Name"/>
88
89    <androidx.appcompat.widget.AppCompatTextView
90        android:id="@+id/activity_artist_details_count"
91        android:layout_width="0dp"
92        android:layout_height="wrap_content"
93        android:layout_marginTop="4dp"
94        android:textSize="12sp"
95        android:maxLines="1"
96        android:ellipsize="end"
97        app:layout_constraintTop_toBottomOf="@id/activity_artist_details_name"
98        app:layout_constraintStart_toStartOf="@id/activity_artist_details_name"
99        app:layout_constraintEnd_toEndOf="@id/activity_artist_details_name"
100        tools:text="22 audios"/>
101
102    <androidx.recyclerview.widget.RecyclerView
103        android:id="@+id/activity_artist_details_recycler_view"
104        android:layout_width="0dp"
105        android:layout_height="0dp"
106        android:layout_marginTop="4dp"
107        app:layout_constraintTop_toBottomOf="@id/activity_artist_details_count"
108        app:layout_constraintBottom_toBottomOf="parent"
109        app:layout_constraintStart_toStartOf="@id/activity_artist_details_count"
110        app:layout_constraintEnd_toEndOf="@id/activity_artist_details_count"
111        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
112        tools:listitem="@layout/audio"/>
113
114</androidx.constraintlayout.widget.ConstraintLayout>
115