aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-12-13 17:24:36 -0600
committerIván Ávalos <avalos@disroot.org>2022-12-13 17:24:36 -0600
commit4caf2dca669717a8e5d60abd60ae1f76a83b1850 (patch)
treee7fac9dc6ecb787913b2d35f4de86ec23ae9c7c2 /app/src/main/res/layout
parent09514a573919b7e25e96d632161a0db8fc581909 (diff)
downloaddsub-4caf2dca669717a8e5d60abd60ae1f76a83b1850.tar.gz
dsub-4caf2dca669717a8e5d60abd60ae1f76a83b1850.tar.bz2
dsub-4caf2dca669717a8e5d60abd60ae1f76a83b1850.zip
Improved Now Playing UI
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/download_media_buttons.xml3
-rw-r--r--app/src/main/res/layout/download_slider.xml40
2 files changed, 23 insertions, 20 deletions
diff --git a/app/src/main/res/layout/download_media_buttons.xml b/app/src/main/res/layout/download_media_buttons.xml
index 0610c5f9..b60357a0 100644
--- a/app/src/main/res/layout/download_media_buttons.xml
+++ b/app/src/main/res/layout/download_media_buttons.xml
@@ -3,7 +3,8 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:paddingVertical="15dp">
<ImageButton
style="@style/PlaybackControl"
diff --git a/app/src/main/res/layout/download_slider.xml b/app/src/main/res/layout/download_slider.xml
index bfd4c120..d50262c1 100644
--- a/app/src/main/res/layout/download_slider.xml
+++ b/app/src/main/res/layout/download_slider.xml
@@ -5,37 +5,39 @@
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="@android:color/transparent"
- android:paddingBottom="10dip">
-
+ android:layout_marginTop="15dip"
+ android:layout_marginHorizontal="14dp">
+
<TextView
- android:id="@+id/download_position"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:paddingLeft="8dip"
- android:text="0:00"
- android:textSize="12sp"
- android:textColor="?android:textColorPrimary"
- android:paddingBottom="4dip"/>
+ android:id="@+id/download_position"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentLeft="true"
+ android:text="0:00"
+ android:textColor="?android:textColorPrimary"
+ android:textSize="12sp" />
<SeekBar
android:id="@+id/download_progress_bar"
- android:layout_width="fill_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
android:indeterminate="false"
- android:paddingLeft="55dip"
- android:paddingRight="55dip"
- android:paddingTop="3dip"
- android:paddingBottom="7dip" />
+ android:layout_toEndOf="@id/download_position"
+ android:layout_toRightOf="@id/download_position"
+ android:layout_toStartOf="@id/download_duration"
+ android:layout_toLeftOf="@id/download_duration"
+ />
<TextView
android:id="@+id/download_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:paddingRight="8dip"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentRight="true"
android:text="-:--"
android:textSize="12sp"
android:textColor="?android:textColorPrimary"