Replace abc_scrubber_primary_mtrl_alpha with a custom seekbar scrubber
Signed-off-by: baalajimaestro <baalajimaestro@ptr.moe>
This commit is contained in:
parent
fa754e71a7
commit
a8e19f58d8
2 changed files with 6 additions and 2 deletions
|
@ -74,11 +74,10 @@ public class MarkableSeekBar extends AppCompatSeekBar {
|
||||||
markerDrawables.add(layerDrawable);
|
markerDrawables.add(layerDrawable);
|
||||||
|
|
||||||
for (final SeekBarMarker seekBarMarker : seekBarMarkers) {
|
for (final SeekBarMarker seekBarMarker : seekBarMarkers) {
|
||||||
@SuppressLint("PrivateResource")
|
|
||||||
final Drawable markerDrawable =
|
final Drawable markerDrawable =
|
||||||
ContextCompat.getDrawable(
|
ContextCompat.getDrawable(
|
||||||
getContext(),
|
getContext(),
|
||||||
R.drawable.abc_scrubber_primary_mtrl_alpha);
|
R.drawable.seekbar_scrubber_primary);
|
||||||
|
|
||||||
final PorterDuffColorFilter colorFilter =
|
final PorterDuffColorFilter colorFilter =
|
||||||
new PorterDuffColorFilter(seekBarMarker.color, PorterDuff.Mode.SRC_IN);
|
new PorterDuffColorFilter(seekBarMarker.color, PorterDuff.Mode.SRC_IN);
|
||||||
|
|
5
app/src/main/res/drawable/seekbar_scrubber_primary.xml
Normal file
5
app/src/main/res/drawable/seekbar_scrubber_primary.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">
|
||||||
|
<stroke
|
||||||
|
android:width="4dp" android:color="?attr/colorAccent" />
|
||||||
|
</shape>
|
Loading…
Reference in a new issue