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_series_details_image" 27 android:layout_width="0dp" 28 android:layout_height="309dp" 29 android:scaleType="centerCrop" 30 app:layout_constraintTop_toTopOf="parent" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintEnd_toEndOf="parent" 33 tools:src="@tools:sample/backgrounds/scenic"/> 34 35 <com.google.android.material.appbar.AppBarLayout 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:background="@null" 39 app:layout_constraintTop_toTopOf="parent" 40 app:layout_constraintStart_toStartOf="parent" 41 app:layout_constraintEnd_toEndOf="parent" 42 app:elevation="0dp"> 43 44 <androidx.appcompat.widget.Toolbar 45 android:id="@+id/activity_series_details_toolbar" 46 android:layout_width="match_parent" 47 android:layout_height="?actionBarSize"/> 48 49 </com.google.android.material.appbar.AppBarLayout> 50 51 <android.view.View 52 android:layout_width="0dp" 53 android:layout_height="77dp" 54 android:background="@drawable/shadow" 55 app:layout_constraintBottom_toBottomOf="@id/activity_series_details_image" 56 app:layout_constraintStart_toStartOf="@id/activity_series_details_image" 57 app:layout_constraintEnd_toEndOf="@id/activity_series_details_image"/> 58 59 <com.android.pump.widget.UriImageView 60 android:id="@+id/activity_series_details_poster" 61 android:layout_width="108dp" 62 android:layout_height="162dp" 63 android:layout_marginStart="24dp" 64 android:layout_marginEnd="24dp" 65 android:scaleType="centerCrop" 66 app:layout_constraintBottom_toBottomOf="@id/activity_series_details_image" 67 app:layout_constraintStart_toStartOf="@id/activity_series_details_image" 68 tools:src="@tools:sample/avatars"/> 69 70 <androidx.appcompat.widget.AppCompatTextView 71 android:id="@+id/activity_series_details_title" 72 android:layout_width="0dp" 73 android:layout_height="wrap_content" 74 android:layout_marginStart="24dp" 75 android:layout_marginEnd="24dp" 76 android:layout_marginTop="24dp" 77 android:textSize="18sp" 78 android:maxLines="3" 79 android:ellipsize="end" 80 app:layout_constraintTop_toBottomOf="@id/activity_series_details_image" 81 app:layout_constraintStart_toStartOf="parent" 82 app:layout_constraintEnd_toEndOf="parent" 83 tools:text="Title"/> 84 85 <androidx.appcompat.widget.AppCompatTextView 86 android:id="@+id/activity_series_details_attributes" 87 android:layout_width="0dp" 88 android:layout_height="wrap_content" 89 android:layout_marginTop="4dp" 90 android:textSize="12sp" 91 android:maxLines="1" 92 android:ellipsize="end" 93 app:layout_constraintTop_toBottomOf="@id/activity_series_details_title" 94 app:layout_constraintStart_toStartOf="@id/activity_series_details_title" 95 app:layout_constraintEnd_toEndOf="@id/activity_series_details_title" 96 tools:text="American Drama Series"/> 97 98 <androidx.appcompat.widget.AppCompatTextView 99 android:id="@+id/activity_series_details_description" 100 android:layout_width="0dp" 101 android:layout_height="wrap_content" 102 android:layout_marginTop="16dp" 103 android:maxLines="3" 104 android:ellipsize="end" 105 app:layout_constraintTop_toBottomOf="@id/activity_series_details_attributes" 106 app:layout_constraintStart_toStartOf="@id/activity_series_details_title" 107 app:layout_constraintEnd_toEndOf="@id/activity_series_details_title" 108 tools:text="@tools:sample/lorem/random"/> 109 110 <androidx.appcompat.widget.AppCompatSpinner 111 android:id="@+id/activity_series_details_spinner" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:layout_marginTop="16dp" 115 app:layout_constraintTop_toBottomOf="@id/activity_series_details_description" 116 app:layout_constraintStart_toStartOf="@id/activity_series_details_description"/> 117 118 <androidx.recyclerview.widget.RecyclerView 119 android:id="@+id/activity_series_details_recycler_view" 120 android:layout_width="0dp" 121 android:layout_height="wrap_content" 122 android:layout_marginTop="8dp" 123 app:layout_constraintTop_toBottomOf="@id/activity_series_details_spinner" 124 app:layout_constraintStart_toStartOf="@id/activity_series_details_description" 125 app:layout_constraintEnd_toEndOf="@id/activity_series_details_description" 126 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 127 android:orientation="horizontal" 128 tools:listitem="@layout/episode"/> 129 130</androidx.constraintlayout.widget.ConstraintLayout> 131