diff options
author | ByteHamster <info@bytehamster.com> | 2020-05-05 19:03:44 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-05-06 17:02:53 +0200 |
commit | 8be147c603d92c9520adeaa2b9e9f8ce6b76fa40 (patch) | |
tree | b6c61c75ccff3302db97f12b6f9f23b02ab0b704 /core/src/main/res | |
parent | b233f4dcb7273a5f39474c1d1cea3c017f5ba500 (diff) | |
download | AntennaPod-8be147c603d92c9520adeaa2b9e9f8ce6b76fa40.zip |
Added on-demand configuration for stream vs download
Diffstat (limited to 'core/src/main/res')
-rw-r--r-- | core/src/main/res/layout/popup_bubble_view.xml | 40 | ||||
-rw-r--r-- | core/src/main/res/values/strings.xml | 5 |
2 files changed, 45 insertions, 0 deletions
diff --git a/core/src/main/res/layout/popup_bubble_view.xml b/core/src/main/res/layout/popup_bubble_view.xml new file mode 100644 index 000000000..6b2e16f99 --- /dev/null +++ b/core/src/main/res/layout/popup_bubble_view.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp"> + + <TextView + android:layout_width="match_parent" + android:textColor="?attr/colorOnSecondary" + android:layout_height="wrap_content" + android:lines="3" + android:id="@+id/balloon_message"/> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:gravity="end"> + + <Button + style="@style/Widget.MaterialComponents.Button.TextButton" + android:textColor="?attr/colorOnSecondary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no" + android:id="@+id/balloon_button_negative"/> + + <Button + style="@style/Widget.MaterialComponents.Button.TextButton" + android:textColor="?attr/colorOnSecondary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/yes" + android:id="@+id/balloon_button_positive"/> + + </LinearLayout> +</LinearLayout> diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 2da946b36..b6e46a9e6 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -810,4 +810,9 @@ <string name="widget_settings">Widget settings</string> <string name="widget_create_button">Create widget</string> <string name="widget_opacity">Opacity</string> + + <!-- On-Demand configuration --> + <string name="on_demand_config_setting_changed">Setting updated successfully.</string> + <string name="on_demand_config_stream_text">Looks like you stream a lot. Do you want episode lists to show stream buttons?</string> + <string name="on_demand_config_download_text">Looks like you download a lot. Do you want episode lists to show download buttons?</string> </resources> |