summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorChristofer Ã…kersten <akersten@google.com>2019-01-16 11:48:33 -0800
committerChristofer Ã…kersten <akersten@google.com>2019-01-16 12:54:55 -0800
commit1416530bec3e8165a8fb6b18842d2f1cd51f2fb1 (patch)
treee5ccf1a49dfb5887a635591f3d9fbe0417277d04 /res/layout
parentc978ed0dc3e5eeaeadd4766f84b163d3f54fc97b (diff)
downloadUniversalMediaPlayer-1416530bec3e8165a8fb6b18842d2f1cd51f2fb1.tar.gz
Remove apps/Pump directory
Test: Build in Android Studio Change-Id: If8fe5f2866c49a7cab7071c4929e7e2fce48dce3
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/activity_album_details.xml22
-rw-r--r--res/layout/activity_artist_details.xml22
-rw-r--r--res/layout/activity_audio_player.xml30
-rw-r--r--res/layout/activity_genre_details.xml22
-rw-r--r--res/layout/activity_movie_details.xml125
-rw-r--r--res/layout/activity_other_details.xml102
-rw-r--r--res/layout/activity_playlist_details.xml22
-rw-r--r--res/layout/activity_pump.xml89
-rw-r--r--res/layout/activity_series_details.xml22
-rw-r--r--res/layout/activity_video_player.xml30
-rw-r--r--res/layout/album.xml64
-rw-r--r--res/layout/artist.xml52
-rw-r--r--res/layout/audio.xml77
-rw-r--r--res/layout/fragment_album.xml29
-rw-r--r--res/layout/fragment_artist.xml29
-rw-r--r--res/layout/fragment_audio.xml28
-rw-r--r--res/layout/fragment_genre.xml29
-rw-r--r--res/layout/fragment_home.xml22
-rw-r--r--res/layout/fragment_movie.xml29
-rw-r--r--res/layout/fragment_other.xml27
-rw-r--r--res/layout/fragment_playlist.xml29
-rw-r--r--res/layout/fragment_series.xml29
-rw-r--r--res/layout/genre.xml54
-rw-r--r--res/layout/header.xml21
-rw-r--r--res/layout/movie.xml52
-rw-r--r--res/layout/other.xml29
-rw-r--r--res/layout/playlist.xml97
-rw-r--r--res/layout/series.xml52
28 files changed, 1235 insertions, 0 deletions
diff --git a/res/layout/activity_album_details.xml b/res/layout/activity_album_details.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/activity_album_details.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/activity_artist_details.xml b/res/layout/activity_artist_details.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/activity_artist_details.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/activity_audio_player.xml b/res/layout/activity_audio_player.xml
new file mode 100644
index 0000000..1eac3bd
--- /dev/null
+++ b/res/layout/activity_audio_player.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <androidx.media2.widget.VideoView
+ android:id="@+id/video_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+
+</LinearLayout>
diff --git a/res/layout/activity_genre_details.xml b/res/layout/activity_genre_details.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/activity_genre_details.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/activity_movie_details.xml b/res/layout/activity_movie_details.xml
new file mode 100644
index 0000000..157b01f
--- /dev/null
+++ b/res/layout/activity_movie_details.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/activity_movie_details_image"
+ android:layout_width="0dp"
+ android:layout_height="309dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:src="@tools:sample/backgrounds/scenic"/>
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:elevation="0dp">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/activity_movie_details_toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?actionBarSize"/>
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/activity_movie_details_play"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ app:layout_constraintTop_toTopOf="@id/activity_movie_details_image"
+ app:layout_constraintBottom_toBottomOf="@id/activity_movie_details_image"
+ app:layout_constraintStart_toStartOf="@id/activity_movie_details_image"
+ app:layout_constraintEnd_toEndOf="@id/activity_movie_details_image"
+ app:srcCompat="@drawable/ic_play"
+ app:tint="?colorControlNormal"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground"/>
+
+ <android.view.View
+ android:layout_width="0dp"
+ android:layout_height="77dp"
+ android:background="@drawable/shadow"
+ app:layout_constraintBottom_toBottomOf="@id/activity_movie_details_image"
+ app:layout_constraintStart_toStartOf="@id/activity_movie_details_image"
+ app:layout_constraintEnd_toEndOf="@id/activity_movie_details_image"/>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/activity_movie_details_poster"
+ android:layout_width="108dp"
+ android:layout_height="162dp"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintBottom_toBottomOf="@id/activity_movie_details_image"
+ app:layout_constraintStart_toStartOf="@id/activity_movie_details_image"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/activity_movie_details_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginTop="24dp"
+ android:textSize="18sp"
+ android:maxLines="3"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/activity_movie_details_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/activity_movie_details_attributes"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:textSize="12sp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/activity_movie_details_title"
+ app:layout_constraintStart_toStartOf="@id/activity_movie_details_title"
+ app:layout_constraintEnd_toEndOf="@id/activity_movie_details_title"
+ tools:text="1h 20m"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/activity_movie_details_synopsis"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:maxLines="3"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/activity_movie_details_attributes"
+ app:layout_constraintStart_toStartOf="@id/activity_movie_details_title"
+ app:layout_constraintEnd_toEndOf="@id/activity_movie_details_title"
+ tools:text="@tools:sample/lorem/random"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/activity_other_details.xml b/res/layout/activity_other_details.xml
new file mode 100644
index 0000000..4ff1606
--- /dev/null
+++ b/res/layout/activity_other_details.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/activity_other_details_image"
+ android:layout_width="0dp"
+ android:layout_height="309dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:src="@tools:sample/backgrounds/scenic"/>
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@null"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:elevation="0dp">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/activity_other_details_toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?actionBarSize"/>
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/activity_other_details_play"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ app:layout_constraintTop_toTopOf="@id/activity_other_details_image"
+ app:layout_constraintBottom_toBottomOf="@id/activity_other_details_image"
+ app:layout_constraintStart_toStartOf="@id/activity_other_details_image"
+ app:layout_constraintEnd_toEndOf="@id/activity_other_details_image"
+ app:srcCompat="@drawable/ic_play"
+ app:tint="?colorControlNormal"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground"/>
+
+ <android.view.View
+ android:layout_width="0dp"
+ android:layout_height="77dp"
+ android:background="@drawable/shadow"
+ app:layout_constraintBottom_toBottomOf="@id/activity_other_details_image"
+ app:layout_constraintStart_toStartOf="@id/activity_other_details_image"
+ app:layout_constraintEnd_toEndOf="@id/activity_other_details_image"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/activity_other_details_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:layout_marginTop="24dp"
+ android:textSize="18sp"
+ android:maxLines="3"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/activity_other_details_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/activity_other_details_attributes"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="4dp"
+ android:textSize="12sp"
+ android:maxLines="5"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/activity_other_details_title"
+ app:layout_constraintStart_toStartOf="@id/activity_other_details_title"
+ app:layout_constraintEnd_toEndOf="@id/activity_other_details_title"
+ tools:text="1h 20m"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/activity_playlist_details.xml b/res/layout/activity_playlist_details.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/activity_playlist_details.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/activity_pump.xml b/res/layout/activity_pump.xml
new file mode 100644
index 0000000..0d0256c
--- /dev/null
+++ b/res/layout/activity_pump.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.drawerlayout.widget.DrawerLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/activity_pump_drawer_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fitsSystemWindows="true">
+
+ <android.widget.LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:animateLayoutChanges="true"
+ android:orientation="vertical">
+
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/activity_pump_toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?actionBarSize"
+ app:navigationIcon="@drawable/ic_menu"
+ app:layout_scrollFlags="scroll|enterAlways"/>
+
+ <com.google.android.material.tabs.TabLayout
+ android:id="@+id/activity_pump_tab_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+
+ <!--android.view.View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="#5f6368"/-->
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <!-- TODO Switch to androidx.viewpager2.widget.ViewPager2 -->
+ <androidx.viewpager.widget.ViewPager
+ android:id="@+id/activity_pump_view_pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
+
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+ <com.google.android.material.bottomnavigation.BottomNavigationView
+ android:id="@+id/activity_pump_bottom_navigation_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="bottom"
+ android:background="?colorPrimary"
+ app:itemIconTint="@drawable/selector_bottom_navigation"
+ app:itemTextColor="@drawable/selector_bottom_navigation"
+ app:labelVisibilityMode="labeled"
+ app:menu="@menu/activity_pump_bottom_navigation_view"/>
+
+ </android.widget.LinearLayout>
+
+ <com.google.android.material.navigation.NavigationView
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="start"
+ android:fitsSystemWindows="true"
+ app:menu="@menu/activity_pump_bottom_navigation_view"/>
+
+</androidx.drawerlayout.widget.DrawerLayout>
diff --git a/res/layout/activity_series_details.xml b/res/layout/activity_series_details.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/activity_series_details.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/activity_video_player.xml b/res/layout/activity_video_player.xml
new file mode 100644
index 0000000..1eac3bd
--- /dev/null
+++ b/res/layout/activity_video_player.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <androidx.media2.widget.VideoView
+ android:id="@+id/video_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+
+</LinearLayout>
diff --git a/res/layout/album.xml b/res/layout/album.xml
new file mode 100644
index 0000000..0e024ea
--- /dev/null
+++ b/res/layout/album.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/album_image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/album_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/album_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/album_artist"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/album_title"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Artist"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/artist.xml b/res/layout/artist.xml
new file mode 100644
index 0000000..fe1904e
--- /dev/null
+++ b/res/layout/artist.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/artist_image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/artist_name"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/artist_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Name"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/audio.xml b/res/layout/audio.xml
new file mode 100644
index 0000000..57f1c21
--- /dev/null
+++ b/res/layout/audio.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/audio_image"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_marginTop="14dp"
+ android:layout_marginBottom="14dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/audio_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="11dp"
+ android:layout_marginEnd="16dp"
+ android:ellipsize="end"
+ android:maxLines="1"
+ app:layout_constraintStart_toEndOf="@id/audio_image"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/audio_options"
+ tools:text="Title"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/audio_artist"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ app:layout_constraintStart_toStartOf="@id/audio_title"
+ app:layout_constraintTop_toBottomOf="@id/audio_title"
+ app:layout_constraintEnd_toEndOf="@id/audio_title"
+ tools:text="Artist"/>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/audio_options"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginTop="20dp"
+ android:layout_marginBottom="20dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:srcCompat="@drawable/ic_menu"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/fragment_album.xml b/res/layout/fragment_album.xml
new file mode 100644
index 0000000..2b324d7
--- /dev/null
+++ b/res/layout/fragment_album.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_album_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="2"
+ tools:listitem="@layout/album"/>
diff --git a/res/layout/fragment_artist.xml b/res/layout/fragment_artist.xml
new file mode 100644
index 0000000..5537c75
--- /dev/null
+++ b/res/layout/fragment_artist.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_artist_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="2"
+ tools:listitem="@layout/artist"/>
diff --git a/res/layout/fragment_audio.xml b/res/layout/fragment_audio.xml
new file mode 100644
index 0000000..1941d6c
--- /dev/null
+++ b/res/layout/fragment_audio.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_audio_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
+ tools:listitem="@layout/audio"/>
diff --git a/res/layout/fragment_genre.xml b/res/layout/fragment_genre.xml
new file mode 100644
index 0000000..a1cbb08
--- /dev/null
+++ b/res/layout/fragment_genre.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_genre_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="2"
+ tools:listitem="@layout/genre"/>
diff --git a/res/layout/fragment_home.xml b/res/layout/fragment_home.xml
new file mode 100644
index 0000000..6766635
--- /dev/null
+++ b/res/layout/fragment_home.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<android.view.View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffb6c1"/>
diff --git a/res/layout/fragment_movie.xml b/res/layout/fragment_movie.xml
new file mode 100644
index 0000000..05cba1a
--- /dev/null
+++ b/res/layout/fragment_movie.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_movie_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="3"
+ tools:listitem="@layout/movie"/>
diff --git a/res/layout/fragment_other.xml b/res/layout/fragment_other.xml
new file mode 100644
index 0000000..045031b
--- /dev/null
+++ b/res/layout/fragment_other.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_other_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="6"
+ tools:listitem="@layout/other"/>
diff --git a/res/layout/fragment_playlist.xml b/res/layout/fragment_playlist.xml
new file mode 100644
index 0000000..3967526
--- /dev/null
+++ b/res/layout/fragment_playlist.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_playlist_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="2"
+ tools:listitem="@layout/playlist"/>
diff --git a/res/layout/fragment_series.xml b/res/layout/fragment_series.xml
new file mode 100644
index 0000000..467f54d
--- /dev/null
+++ b/res/layout/fragment_series.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.recyclerview.widget.RecyclerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/fragment_series_recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp"
+ app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+ app:spanCount="3"
+ tools:listitem="@layout/movie"/>
diff --git a/res/layout/genre.xml b/res/layout/genre.xml
new file mode 100644
index 0000000..9a605aa
--- /dev/null
+++ b/res/layout/genre.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/genre_image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/genre_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Genre"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/header.xml b/res/layout/header.xml
new file mode 100644
index 0000000..74221e3
--- /dev/null
+++ b/res/layout/header.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<com.android.pump.widget.SortOrderSpinner
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="48dp"/>
diff --git a/res/layout/movie.xml b/res/layout/movie.xml
new file mode 100644
index 0000000..e16d99a
--- /dev/null
+++ b/res/layout/movie.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/movie_image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="2:3"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/movie_text"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/movie_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/other.xml b/res/layout/other.xml
new file mode 100644
index 0000000..5fdff9c
--- /dev/null
+++ b/res/layout/other.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<com.android.pump.widget.AspectRatioImageView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/other_image"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:scaleType="centerCrop"
+ tools:src="@tools:sample/avatars"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground"/>
diff --git a/res/layout/playlist.xml b/res/layout/playlist.xml
new file mode 100644
index 0000000..8ee83a5
--- /dev/null
+++ b/res/layout/playlist.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/playlist_image_0"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/playlist_image_1"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/playlist_image_1"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toEndOf="@id/playlist_image_0"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/playlist_image_2"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toBottomOf="@id/playlist_image_0"
+ app:layout_constraintStart_toStartOf="@id/playlist_image_0"
+ app:layout_constraintEnd_toEndOf="@id/playlist_image_0"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/playlist_image_3"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toBottomOf="@id/playlist_image_1"
+ app:layout_constraintStart_toStartOf="@id/playlist_image_1"
+ app:layout_constraintEnd_toEndOf="@id/playlist_image_1"
+ app:layout_constraintDimensionRatio="1:1"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/playlist_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/playlist_image_2"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/playlist_artists"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/playlist_title"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Artists"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/res/layout/series.xml b/res/layout/series.xml
new file mode 100644
index 0000000..222297a
--- /dev/null
+++ b/res/layout/series.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+
+ android:clickable="true"
+ android:focusable="true"
+ android:foreground="?selectableItemBackground">
+
+ <com.android.pump.widget.UriImageView
+ android:id="@+id/series_image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:scaleType="centerCrop"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintDimensionRatio="2:3"
+ tools:src="@tools:sample/avatars"/>
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/series_text"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:maxLines="1"
+ android:ellipsize="end"
+ app:layout_constraintTop_toBottomOf="@id/series_image"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="Title"/>
+
+</androidx.constraintlayout.widget.ConstraintLayout>