mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
fix: add podcast channel visible when empty podcasts (#260)
This commit is contained in:
commit
ca8bcba0d7
5 changed files with 64 additions and 40 deletions
14
USAGE.md
14
USAGE.md
|
|
@ -6,6 +6,7 @@
|
||||||
- [Getting Started](#getting-started)
|
- [Getting Started](#getting-started)
|
||||||
- [Server Configuration](#server-configuration)
|
- [Server Configuration](#server-configuration)
|
||||||
- [Main Features](#main-features)
|
- [Main Features](#main-features)
|
||||||
|
|
||||||
- [Navigation](#navigation)
|
- [Navigation](#navigation)
|
||||||
- [Playback Controls](#playback-controls)
|
- [Playback Controls](#playback-controls)
|
||||||
- [Favorites](#favorites)
|
- [Favorites](#favorites)
|
||||||
|
|
@ -27,6 +28,8 @@ This app works with any service that implements the Subsonic API, including:
|
||||||
- [LMS - Lightweight Music Server](https://github.com/epoupon/lms) - *personal fave and my backend*
|
- [LMS - Lightweight Music Server](https://github.com/epoupon/lms) - *personal fave and my backend*
|
||||||
- [Navidrome](https://www.navidrome.org/)
|
- [Navidrome](https://www.navidrome.org/)
|
||||||
- [Gonic](https://github.com/sentriz/gonic)
|
- [Gonic](https://github.com/sentriz/gonic)
|
||||||
|
- [Ampache](https://github.com/ampache/ampache)
|
||||||
|
- [NextCloud Music](https://apps.nextcloud.com/apps/music)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -84,6 +87,17 @@ On the main player control screen, tapping on the artwork will reveal a small co
|
||||||
4. Saves play queue (if the feature is enabled in the settings)
|
4. Saves play queue (if the feature is enabled in the settings)
|
||||||
* if the setting is not enabled, it toggles a view of the lyrics if available (slides to the right)
|
* if the setting is not enabled, it toggles a view of the lyrics if available (slides to the right)
|
||||||
|
|
||||||
|
### Podcasts
|
||||||
|
If your server supports it - add a podcast rss feed
|
||||||
|
<p align="left">
|
||||||
|
<img src="mockup/usage/add_podcast_feed.png" width=317>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Radio Stations
|
||||||
|
If your server supports it - add a internet radio station feed
|
||||||
|
<p align="left">
|
||||||
|
<img src="mockup/usage/add_radio_station.png" width=326>
|
||||||
|
</p>
|
||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,20 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="@dimen/global_padding_bottom">
|
android:paddingBottom="@dimen/global_padding_bottom">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/podcast_channels_pre_text_view"
|
||||||
|
style="@style/TitleMedium"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:paddingStart="16dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingEnd="16dp"
|
||||||
|
android:text="@string/home_subtitle_new_podcast_channel"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/colorPrimary"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/home_podcast_channels_sector"
|
android:id="@+id/home_podcast_channels_sector"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -29,17 +43,6 @@
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/podcast_channels_pre_text_view"
|
|
||||||
style="@style/TitleMedium"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingTop="16dp"
|
|
||||||
android:paddingEnd="16dp"
|
|
||||||
android:text="@string/home_subtitle_new_podcast_channel"
|
|
||||||
android:textAllCaps="true" />
|
|
||||||
|
|
||||||
<!-- Label and button -->
|
<!-- Label and button -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -169,4 +172,4 @@
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/podcast_info_empty_button" />
|
android:text="@string/podcast_info_empty_button" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
@ -1,44 +1,54 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/internet_radio_station_pre_text_view"
|
||||||
|
style="@style/TitleMedium"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:paddingStart="16dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingEnd="16dp"
|
||||||
|
android:text="@string/home_subtitle_new_internet_radio_station"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/colorPrimary"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/internet_radio_station_title_text_view"
|
||||||
|
style="@style/TitleLarge"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingStart="16dp"
|
||||||
|
android:paddingEnd="16dp"
|
||||||
|
android:text="@string/home_title_internet_radio_station"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/internet_radio_station_pre_text_view"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
android:id="@+id/home_radio_station_sector"
|
android:id="@+id/home_radio_station_sector"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toBottomOf="@id/internet_radio_station_title_text_view">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="@dimen/global_padding_bottom">
|
android:paddingBottom="@dimen/global_padding_bottom">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/internet_radio_station_pre_text_view"
|
|
||||||
style="@style/TitleMedium"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingTop="16dp"
|
|
||||||
android:paddingEnd="16dp"
|
|
||||||
android:text="@string/home_subtitle_new_internet_radio_station"
|
|
||||||
android:textAllCaps="true" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/internet_radio_station_title_text_view"
|
|
||||||
style="@style/TitleLarge"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingEnd="16dp"
|
|
||||||
android:text="@string/home_title_internet_radio_station" />
|
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/internet_radio_station_recycler_view"
|
android:id="@+id/internet_radio_station_recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -61,7 +71,7 @@
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toBottomOf="@id/internet_radio_station_title_text_view">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/empty_description_image_view"
|
android:id="@+id/empty_description_image_view"
|
||||||
|
|
@ -105,7 +115,4 @@
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="@string/radio_station_info_empty_button" />
|
android:text="@string/radio_station_info_empty_button" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BIN
mockup/usage/add_podcast_feed.png
Normal file
BIN
mockup/usage/add_podcast_feed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
mockup/usage/add_radio_station.png
Normal file
BIN
mockup/usage/add_radio_station.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Loading…
Add table
Add a link
Reference in a new issue