feat: add ability to add podcast channels

This commit is contained in:
antonio 2023-06-04 20:43:08 +02:00
parent 0248187f41
commit 7f4be7ad3e
10 changed files with 204 additions and 2 deletions

View file

@ -0,0 +1,27 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:textColorHint="?android:textColorHint"
app:endIconMode="clear_text"
app:endIconTint="?android:textColorSecondary"
app:errorEnabled="true">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/podcast_channel_rss_url_name_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/podcast_channel_editor_dialog_hint_rss_url"
android:inputType="textNoSuggestions"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>

View file

@ -26,6 +26,17 @@
android:orientation="vertical"
android:paddingBottom="8dp">
<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 -->
<LinearLayout
android:layout_width="match_parent"
@ -38,7 +49,6 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingStart="16dp"
android:paddingTop="16dp"
android:paddingEnd="16dp"
android:text="@string/home_title_podcast_channels" />

View file

@ -59,6 +59,7 @@
<string name="genre_catalogue_title">Genre Catalogue</string>
<string name="genre_catalogue_title_expanded">Browse Genres</string>
<string name="home_subtitle_new_internet_radio_station">Add a new radio</string>
<string name="home_subtitle_new_podcast_channel">Add a new podcast channel</string>
<string name="home_subtitle_made_for_you">Start mix from a song you liked</string>
<string name="home_sync_starred_title">Looks like there are some starred tracks to sync</string>
<string name="home_sync_starred_subtitle">Downloading these tracks may involve significant data usage</string>
@ -124,6 +125,8 @@
<string name="podcast_channel_catalogue_title">Channels</string>
<string name="podcast_channel_page_title_description_section">Description</string>
<string name="podcast_channel_page_title_episode_section">Episodes</string>
<string name="podcast_channel_editor_dialog_hint_rss_url">RSS Url</string>
<string name="podcast_channel_editor_dialog_title">Podcast Channel</string>
<string name="podcast_release_date_duration_formatter">%1$s • %2$s</string>
<string name="podcast_info_empty_subtitle">Once you add a channel, you\'ll find it here</string>