summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-03-13 23:30:47 +0100
committerByteHamster <info@bytehamster.com>2020-03-13 23:30:47 +0100
commit63222f38cc371375efa928045cb8bcbf02563de5 (patch)
treedda6260d6da86f2c48b5da124c9a6869878c31a2 /app/src/main/res/layout
parentfc68fe4b9c7c706902679454b475409f8c14cb5a (diff)
downloadAntennaPod-63222f38cc371375efa928045cb8bcbf02563de5.zip
Make PagerIndicator respect padding
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/mediaplayerinfo_activity.xml35
1 files changed, 13 insertions, 22 deletions
diff --git a/app/src/main/res/layout/mediaplayerinfo_activity.xml b/app/src/main/res/layout/mediaplayerinfo_activity.xml
index d434c3f13..212d8b9d8 100644
--- a/app/src/main/res/layout/mediaplayerinfo_activity.xml
+++ b/app/src/main/res/layout/mediaplayerinfo_activity.xml
@@ -4,44 +4,35 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:background="@android:color/holo_red_dark">
+ android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
<androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
- tools:background="@android:color/darker_gray"/>
-
- <de.danoeh.antennapod.view.PagerIndicatorView
- android:id="@+id/page_indicator"
- android:layout_height="8dp"
- android:layout_width="40dp"
- android:layout_marginTop="-12dp"
- android:paddingBottom="4dp"
- android:layout_gravity="center"
- android:background="@android:color/transparent" />
+ android:theme="?attr/actionBarTheme"
+ android:layout_alignParentTop="true"
+ android:id="@+id/toolbar"/>
- </com.google.android.material.appbar.AppBarLayout>
+ <de.danoeh.antennapod.view.PagerIndicatorView
+ android:id="@+id/page_indicator"
+ android:layout_height="16dp"
+ android:layout_width="40dp"
+ android:layout_marginTop="-12dp"
+ android:padding="4dp"
+ android:layout_below="@id/toolbar"
+ android:layout_centerHorizontal="true"/>
<androidx.viewpager.widget.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_above="@id/playtime_layout"
- android:layout_below="@id/appBar"
+ android:layout_below="@id/toolbar"
android:foreground="?android:windowContentOverlay"
tools:background="@android:color/holo_orange_light"
android:layout_marginBottom="12dp" />