Skip to content

Commit 3ba2a66

Browse files
author
Chris Bellew
committed
Adjusted display of playback controls in notifications.
1 parent 66fc4e3 commit 3ba2a66

12 files changed

+31
-27
lines changed
-316 Bytes
Loading
-485 Bytes
Loading
-62.8 KB
Loading
-268 Bytes
Loading
-300 Bytes
Loading
-62.8 KB
Loading
-358 Bytes
Loading
-243 Bytes
Loading

Voice Control For Plex/src/main/res/layout/now_playing_notification.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<LinearLayout
1313
android:orientation="horizontal"
14-
android:layout_width="wrap_content"
14+
android:layout_width="130dp"
1515
android:layout_height="fill_parent"
1616
android:layout_gravity="center_vertical|right"
1717
>
@@ -20,27 +20,26 @@
2020
android:layout_width="42dp"
2121
android:layout_height="42dp"
2222
android:id="@+id/rewindButton"
23-
android:src="@drawable/button_rewind"
2423
android:background="@null"
25-
android:layout_marginTop="10dp"/>
24+
android:src="@drawable/button_rewind"/>
2625

2726
<RelativeLayout
28-
android:layout_width="fill_parent"
29-
android:layout_height="fill_parent">
27+
android:layout_width="42dp"
28+
android:layout_height="42dp"
29+
android:layout_marginLeft="30dp">
3030

3131
<ImageButton
3232
android:layout_width="42dp"
3333
android:layout_height="42dp"
3434
android:id="@+id/playButton"
3535
android:src="@drawable/button_play"
3636
android:background="@null"
37-
android:layout_marginTop="10dp"/>
37+
/>
3838

3939
<ImageButton
4040
android:layout_width="42dp"
4141
android:layout_height="42dp"
4242
android:id="@+id/pauseButton"
43-
android:layout_marginTop="10dp"
4443
android:background="@null"
4544
android:src="@drawable/button_pause"/>
4645
</RelativeLayout>
@@ -52,13 +51,14 @@
5251
android:layout_height="64dp"
5352
android:layout_gravity="fill_vertical"
5453
android:layout_marginStart="@dimen/notification_icon_width"
54+
android:layout_marginLeft="@dimen/notification_icon_width"
5555
android:minHeight="@dimen/notification_large_icon_height"
5656
android:orientation="vertical"
5757
android:paddingEnd="8dp"
5858
android:paddingTop="2dp"
5959
android:paddingBottom="2dp"
6060
android:gravity="top"
61-
android:paddingRight="90dp"
61+
android:paddingRight="130dp"
6262
android:paddingLeft="8dp">
6363
<TextView
6464
android:id="@+id/title"

Voice Control For Plex/src/main/res/layout/now_playing_notification_big.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
android:minHeight="@dimen/notification_large_icon_height"
2424
android:orientation="vertical"
2525
android:paddingEnd="8dp"
26+
android:paddingRight="8dp"
2627
android:paddingBottom="2dp"
2728
android:gravity="top"
2829
android:paddingLeft="8dp"
@@ -62,16 +63,16 @@
6263
android:orientation="horizontal"
6364
android:layout_width="fill_parent"
6465
android:layout_height="wrap_content"
65-
>
66+
android:layout_weight="1">
6667

6768
<ImageButton
6869
android:layout_width="0dp"
6970
android:layout_height="42dp"
7071
android:id="@+id/rewindButton"
7172
android:src="@drawable/button_rewind"
7273
android:background="@null"
73-
android:layout_gravity="center_vertical"
74-
android:layout_weight="1"/>
74+
android:layout_weight="1"
75+
android:layout_marginTop="8dp"/>
7576

7677
<FrameLayout
7778
android:layout_width="1dp"
@@ -83,8 +84,9 @@
8384

8485
<RelativeLayout
8586
android:layout_width="0dp"
86-
android:layout_height="50dp"
87-
android:layout_weight="1">
87+
android:layout_height="42dp"
88+
android:layout_weight="1"
89+
android:layout_marginTop="8dp">
8890

8991
<ImageButton
9092
android:layout_width="fill_parent"

0 commit comments

Comments
 (0)