summaryrefslogtreecommitdiff
path: root/core/src/main/res
diff options
context:
space:
mode:
authorErik Johnson <palehose@gmail.com>2022-08-25 14:58:26 -0500
committerGitHub <noreply@github.com>2022-08-25 21:58:26 +0200
commit732462438a88970caf444812def1903c31755dbf (patch)
tree283aa6fe3924ae1939e5a65e0d2fa0dadc7a1118 /core/src/main/res
parent7042b8d61613136f44a65c72950b9ad2b3afb284 (diff)
downloadAntennaPod-732462438a88970caf444812def1903c31755dbf.zip
Make widget buttons fill all horizontal space (#6031)
Diffstat (limited to 'core/src/main/res')
-rw-r--r--core/src/main/res/layout/player_widget.xml15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/src/main/res/layout/player_widget.xml b/core/src/main/res/layout/player_widget.xml
index 6f3842e8b..164ca80f8 100644
--- a/core/src/main/res/layout/player_widget.xml
+++ b/core/src/main/res/layout/player_widget.xml
@@ -92,50 +92,55 @@
android:id="@+id/butPlaybackSpeed"
android:layout_width="36dp"
android:layout_height="36dp"
+ android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/playback_speed"
android:layout_marginEnd="2dp"
- android:scaleType="fitXY"
+ android:scaleType="centerInside"
android:src="@drawable/ic_widget_playback_speed" />
<ImageButton
android:id="@+id/butRew"
android:layout_width="36dp"
android:layout_height="36dp"
+ android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/rewind_label"
android:layout_marginEnd="2dp"
- android:scaleType="fitXY"
+ android:scaleType="centerInside"
android:src="@drawable/ic_widget_fast_rewind" />
<ImageButton
android:id="@+id/butPlayExtended"
android:layout_width="36dp"
android:layout_height="36dp"
+ android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/play_label"
android:layout_marginEnd="2dp"
- android:scaleType="fitXY"
+ android:scaleType="centerInside"
android:src="@drawable/ic_widget_play" />
<ImageButton
android:id="@+id/butFastForward"
android:layout_width="36dp"
android:layout_height="36dp"
+ android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/fast_forward_label"
android:layout_marginEnd="2dp"
- android:scaleType="fitXY"
+ android:scaleType="centerInside"
android:src="@drawable/ic_widget_fast_forward" />
<ImageButton
android:id="@+id/butSkip"
android:layout_width="36dp"
android:layout_height="36dp"
+ android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/skip_episode_label"
android:layout_marginEnd="2dp"
- android:scaleType="fitXY"
+ android:scaleType="centerInside"
android:src="@drawable/ic_widget_skip" />
</LinearLayout>