summaryrefslogtreecommitdiff
path: root/core/src/main/res/layout
diff options
context:
space:
mode:
authorTony Tam <149837+tonytamsf@users.noreply.github.com>2021-01-13 09:38:16 -0800
committerGitHub <noreply@github.com>2021-01-13 18:38:16 +0100
commit08d1400951ed107cba14691f6657be32538a5c38 (patch)
treecf8a41d52a5e3da2cdf2bf8fe113c2ae5d13e6ee /core/src/main/res/layout
parent7659fd25d8f9a8724c100f8cd2dffe4d1c8588b2 (diff)
downloadAntennaPod-08d1400951ed107cba14691f6657be32538a5c38.zip
Add rewind, ff, skip button and layout for extra info in Widget (#4746)
Diffstat (limited to 'core/src/main/res/layout')
-rw-r--r--core/src/main/res/layout/player_widget.xml61
1 files changed, 57 insertions, 4 deletions
diff --git a/core/src/main/res/layout/player_widget.xml b/core/src/main/res/layout/player_widget.xml
index 8e38d7f6e..ab42e4cb4 100644
--- a/core/src/main/res/layout/player_widget.xml
+++ b/core/src/main/res/layout/player_widget.xml
@@ -27,7 +27,7 @@
<LinearLayout
android:id="@+id/layout_left"
- android:layout_width="0dp"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
@@ -59,7 +59,7 @@
android:maxLines="3"
android:text="@string/no_media_playing_label"
android:textColor="@color/white"
- android:textSize="@dimen/text_size_medium"
+ android:textSize="16sp"
android:textStyle="bold" />
<TextView
@@ -67,8 +67,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
+ android:ellipsize="end"
android:textColor="@color/white"
- android:textSize="@dimen/text_size_medium"
+ android:textSize="16sp"
android:textStyle="bold"
android:visibility="gone" />
@@ -78,9 +79,61 @@
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="@color/white"
+ android:textSize="14sp"
android:visibility="gone" />
+
+ <LinearLayout
+ android:id="@+id/extendedButtonsContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:visibility="gone">
+
+ <ImageButton
+ android:id="@+id/butRew"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:contentDescription="@string/rewind_label"
+ android:layout_marginRight="2dp"
+ android:layout_marginEnd="2dp"
+ android:scaleType="fitXY"
+ android:src="@drawable/ic_av_fast_rewind_white_48dp"/>
+
+ <ImageButton
+ android:id="@+id/butPlayExtended"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:contentDescription="@string/play_label"
+ android:layout_marginRight="2dp"
+ android:layout_marginEnd="2dp"
+ android:scaleType="fitXY"
+ android:src="@drawable/ic_av_play_white_48dp"/>
+
+ <ImageButton
+ android:id="@+id/butFastForward"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:contentDescription="@string/fast_forward_label"
+ android:layout_marginRight="2dp"
+ android:layout_marginEnd="2dp"
+ android:scaleType="fitXY"
+ android:src="@drawable/ic_av_fast_forward_white_48dp"/>
+
+ <ImageButton
+ android:id="@+id/butSkip"
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:contentDescription="@string/skip_episode_label"
+ android:layout_marginRight="2dp"
+ android:layout_marginEnd="2dp"
+ android:scaleType="fitXY"
+ android:src="@drawable/ic_av_skip_white_24dp"/>
+ </LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
-
</FrameLayout> \ No newline at end of file