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