Merge pull request #4176 from ByteHamster/do-not-resize-seekbar

Do not resize seekbar to make it easier to grab
This commit is contained in:
H. Lehmann 2020-05-21 18:16:59 +02:00 committed by GitHub
commit 339fc1a04b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 10 deletions

View File

@ -43,16 +43,13 @@
android:foreground="?android:windowContentOverlay"
android:layout_marginBottom="12dp"/>
<SeekBar
android:id="@+id/sbPosition"
<ImageView
android:layout_width="match_parent"
android:layout_height="24dp"
android:max="500"
tools:progress="100"
android:layout_above="@id/playtime_layout"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layoutDirection="ltr" />
android:layout_height="8dp"
android:layout_alignBottom="@id/pager"
android:src="@drawable/bg_gradient"
app:tint="?android:attr/windowBackground"
android:importantForAccessibility="no"/>
<LinearLayout
android:id="@+id/playtime_layout"
@ -63,12 +60,22 @@
android:layoutDirection="ltr"
android:orientation="vertical">
<SeekBar
android:id="@+id/sbPosition"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="500"
tools:progress="100"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_marginBottom="4dp">
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp">
<TextView
android:id="@+id/txtvPosition"

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<gradient
android:angle="90"
android:endColor="#00ffffff"
android:startColor="#ffffffff"
android:type="linear" />
<corners
android:radius="0dp"/>
</shape>