Changed seekbar style

This commit is contained in:
ByteHamster 2018-06-08 19:23:29 +02:00
parent bc6fba88fa
commit 54eaa273b6
5 changed files with 25 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/background">
<nine-patch android:src="@drawable/seekbar_bg" android:dither="true"/>
</item>
<item android:id="@android:id/progress">
<clip android:clipOrientation="horizontal"
android:gravity="left">
<nine-patch android:src="@drawable/seekbar_fill" android:dither="true"/>
</clip>
</item>
</layer-list>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/fdroid_green"/>
<size
android:width="20dp"
android:height="20dp"/>
</shape>
</item>
</layer-list>

View File

@ -46,7 +46,8 @@
android:layout_below="@android:id/summary"
android:layout_alignStart="@android:id/summary"
android:layout_alignLeft="@android:id/summary"
android:thumb="@android:drawable/radiobutton_off_background"
android:progressDrawable="@drawable/seekbar_progress"
android:thumb="@drawable/seekbar_thumb"
android:padding="16dip"
android:theme="@style/Widget.AppCompat.SeekBar.Discrete"/>