diff options
author | Christofer Ã…kersten <akersten@google.com> | 2019-01-16 11:48:33 -0800 |
---|---|---|
committer | Christofer Ã…kersten <akersten@google.com> | 2019-01-16 12:54:55 -0800 |
commit | 1416530bec3e8165a8fb6b18842d2f1cd51f2fb1 (patch) | |
tree | e5ccf1a49dfb5887a635591f3d9fbe0417277d04 /res | |
parent | c978ed0dc3e5eeaeadd4766f84b163d3f54fc97b (diff) | |
download | UniversalMediaPlayer-1416530bec3e8165a8fb6b18842d2f1cd51f2fb1.tar.gz |
Remove apps/Pump directory
Test: Build in Android Studio
Change-Id: If8fe5f2866c49a7cab7071c4929e7e2fce48dce3
Diffstat (limited to 'res')
42 files changed, 1680 insertions, 0 deletions
diff --git a/res/drawable/ic_favorite.xml b/res/drawable/ic_favorite.xml new file mode 100644 index 0000000..72227c9 --- /dev/null +++ b/res/drawable/ic_favorite.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M16.5,3c-1.74,0 -3.41,0.81 -4.5,2.09C10.91,3.81 9.24,3 7.5,3 4.42,3 2,5.42 2,8.5c0,3.78 3.4,6.86 8.55,11.54L12,21.35l1.45,-1.32C18.6,15.36 22,12.28 22,8.5 22,5.42 19.58,3 16.5,3zM12.1,18.55l-0.1,0.1 -0.1,-0.1C7.14,14.24 4,11.39 4,8.5 4,6.5 5.5,5 7.5,5c1.54,0 3.04,0.99 3.57,2.36h1.87C13.46,5.99 14.96,5 16.5,5c2,0 3.5,1.5 3.5,3.5 0,2.89 -3.14,5.74 -7.9,10.05z"/> + +</vector> diff --git a/res/drawable/ic_home.xml b/res/drawable/ic_home.xml new file mode 100644 index 0000000..ce399ff --- /dev/null +++ b/res/drawable/ic_home.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/> + +</vector> diff --git a/res/drawable/ic_menu.xml b/res/drawable/ic_menu.xml new file mode 100644 index 0000000..3c9f038 --- /dev/null +++ b/res/drawable/ic_menu.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M3,18h18v-2L3,16v2zM3,13h18v-2L3,11v2zM3,6v2h18L21,6L3,6z"/> + +</vector> diff --git a/res/drawable/ic_music_library.xml b/res/drawable/ic_music_library.xml new file mode 100644 index 0000000..de146c3 --- /dev/null +++ b/res/drawable/ic_music_library.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M20,2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM18,7h-3v5.5c0,1.38 -1.12,2.5 -2.5,2.5S10,13.88 10,12.5s1.12,-2.5 2.5,-2.5c0.57,0 1.08,0.19 1.5,0.51L14,5h4v2zM4,6L2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6z"/> + +</vector> diff --git a/res/drawable/ic_placeholder.xml b/res/drawable/ic_placeholder.xml new file mode 100644 index 0000000..be5a041 --- /dev/null +++ b/res/drawable/ic_placeholder.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:width="1dp" + android:height="1dp" + android:viewportWidth="1" + android:viewportHeight="1"> + + <path + android:strokeWidth="0.05" + android:strokeColor="#ffff0000" + android:pathData="M0,0h1v1h-1zl1,1M0,1l1,-1"/> + +</vector> diff --git a/res/drawable/ic_play.xml b/res/drawable/ic_play.xml new file mode 100644 index 0000000..af73f0b --- /dev/null +++ b/res/drawable/ic_play.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M10,16.5l6,-4.5 -6,-4.5v9zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z"/> + +</vector> diff --git a/res/drawable/ic_search.xml b/res/drawable/ic_search.xml new file mode 100644 index 0000000..a21b3d2 --- /dev/null +++ b/res/drawable/ic_search.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/> + +</vector> diff --git a/res/drawable/ic_video_library.xml b/res/drawable/ic_video_library.xml new file mode 100644 index 0000000..866d544 --- /dev/null +++ b/res/drawable/ic_video_library.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. +--> + +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:width="24dp" + android:viewportHeight="24" + android:viewportWidth="24"> + + <path + android:fillColor="#ff000000" + android:pathData="M4,6L2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6zM20,2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM12,14.5v-9l6,4.5 -6,4.5z"/> + +</vector> diff --git a/res/drawable/selector_bottom_navigation.xml b/res/drawable/selector_bottom_navigation.xml new file mode 100644 index 0000000..1101b54 --- /dev/null +++ b/res/drawable/selector_bottom_navigation.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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_checked="true" android:color="?colorControlActivated"/> + <item android:color="?colorControlNormal"/> +</selector> diff --git a/res/drawable/shadow.xml b/res/drawable/shadow.xml new file mode 100644 index 0000000..dbe64c8 --- /dev/null +++ b/res/drawable/shadow.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. +--> + +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <gradient + android:angle="270" + android:startColor="#00202124" + android:endColor="#ff202124"/> + +</shape> 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> diff --git a/res/menu/activity_pump.xml b/res/menu/activity_pump.xml new file mode 100644 index 0000000..9f5c54f --- /dev/null +++ b/res/menu/activity_pump.xml @@ -0,0 +1,34 @@ +<?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. +--> + +<menu 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"> + + <item + android:title="Cast" + app:showAsAction="ifRoom" + app:actionProviderClass="androidx.mediarouter.app.MediaRouteActionProvider" + tools:icon="@drawable/mr_button_dark"/> + + <item + android:icon="@drawable/ic_search" + android:title="Search" + app:showAsAction="ifRoom" + app:actionViewClass="androidx.appcompat.widget.SearchView"/> + +</menu> diff --git a/res/menu/activity_pump_bottom_navigation_view.xml b/res/menu/activity_pump_bottom_navigation_view.xml new file mode 100644 index 0000000..bc41fac --- /dev/null +++ b/res/menu/activity_pump_bottom_navigation_view.xml @@ -0,0 +1,42 @@ +<?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. +--> + +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:showIn="navigation_view"> + + <item + android:id="@+id/menu_home" + android:icon="@drawable/ic_home" + android:title="Home"/> + + <item + android:id="@+id/menu_video" + android:icon="@drawable/ic_video_library" + android:title="Videos"/> + + <item + android:id="@+id/menu_audio" + android:icon="@drawable/ic_music_library" + android:title="Audios"/> + + <item + android:id="@+id/menu_favorite" + android:icon="@drawable/ic_favorite" + android:title="Favorites"/> + +</menu> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..a220ace --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,33 @@ +<?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. +--> + +<resources> + <color name="colorForeground">#ff0000</color> + <color name="colorBackground">#202124</color> + + <color name="colorPrimary">#313235</color> + <color name="colorPrimaryDark">#313235</color> + <color name="colorAccent">#ff0000</color> + <color name="colorControlNormal">#f8f9fa</color> + <color name="colorControlActivated">#669df6</color> + <color name="colorControlHighlight">#ff0000</color> + <color name="colorButtonNormal">#ff0000</color> + + <color name="textColorPrimary">#f8f9fa</color> + <color name="textColorSecondary">#80868b</color> + <color name="textColorTertiary">#f8f9fa</color> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..80ce0a1 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,55 @@ +<?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. +--> + +<resources> + + <style name="PumpTheme" parent="Theme.MaterialComponents.NoActionBar"> + <item name="android:colorForeground">@color/colorForeground</item> + <item name="android:colorBackground">@color/colorBackground</item> + + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + <item name="colorControlNormal">@color/colorControlNormal</item> + <item name="colorControlActivated">@color/colorControlActivated</item> + <item name="colorControlHighlight">@color/colorControlHighlight</item> + <item name="colorButtonNormal">@color/colorButtonNormal</item> + + <item name="android:textColorPrimary">@color/textColorPrimary</item> + <item name="android:textColorSecondary">@color/textColorSecondary</item> + <item name="android:textColorTertiary">@color/textColorTertiary</item> + + <item name="tabStyle">@style/PumpTheme.TabLayout</item> + <item name="toolbarNavigationButtonStyle">@style/PumpTheme.ToolbarNavigationButtonStyle</item> + <item name="android:spinnerItemStyle">@style/PumpTheme.SpinnerItem</item> + </style> + + <style name="PumpTheme.TabLayout" parent="Widget.MaterialComponents.TabLayout.Colored"> + <item name="android:background">?android:colorPrimary</item> + <item name="tabIndicatorColor">?android:colorControlActivated</item> + <item name="tabRippleColor">?android:colorControlHighlight</item> + </style> + + <style name="PumpTheme.ToolbarNavigationButtonStyle" parent="Widget.AppCompat.Toolbar.Button.Navigation"> + <item name="tint">?android:textColorPrimary</item> + </style> + + <style name="PumpTheme.SpinnerItem" parent="Widget.AppCompat.TextView.SpinnerItem"> + <item name="android:gravity">end</item> + </style> + +</resources> |