Added podcast new episode section to homepage

This commit is contained in:
CappielloAntonio 2022-02-05 18:39:17 +01:00
parent a1051c64f7
commit 88fa46bb74
5 changed files with 107 additions and 29 deletions

View file

@ -591,6 +591,44 @@
android:id="@+id/home_recently_added_albums_placeholder"
layout="@layout/item_placeholder_album"
android:visibility="gone" />
<!-- Podcasts -->
<LinearLayout
android:id="@+id/home_newest_podcasts_sector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
style="@style/Divider"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="12dp" />
<TextView
style="@style/TitleLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:text="@string/home_title_newest_podcasts" />
<!-- slideview -->
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/newest_podcasts_view_pager"
android:layout_width="match_parent"
android:layout_height="258dp"
android:clipToPadding="false"
android:paddingBottom="8dp" />
</LinearLayout>
<include
android:id="@+id/home_newest_podcasts_placeholder"
layout="@layout/item_placehoder_discovery"
android:visibility="gone" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -127,6 +127,7 @@
<string name="playlist_page_play_button">Play</string>
<string name="playlist_page_shuffle_button">Shuffle</string>
<string name="playlist_song_count">Playlist • %1$d songs</string>
<string name="podcast_release_date_duration_formatter">%1$s • %2$s</string>
<string name="rating_dialog_negative_button">Cancel</string>
<string name="rating_dialog_positive_button">Save</string>
<string name="rating_dialog_title">Rate</string>
@ -208,4 +209,5 @@
<string name="home_title_radio_artist_see_all_button">See all</string>
<string name="home_title_radio_station">Radio stations</string>
<string name="home_title_new_releases">New releases</string>
<string name="home_title_newest_podcasts">Newest podcasts</string>
</resources>