Replace abc_scrubber_primary_mtrl_alpha with a custom seekbar scrubber

Signed-off-by: baalajimaestro <baalajimaestro@ptr.moe>
This commit is contained in:
baalajimaestro 2024-11-26 20:11:11 +05:30
parent fa754e71a7
commit a8e19f58d8
Signed by: baalajimaestro
GPG key ID: B5B69626E67EE82A
2 changed files with 6 additions and 2 deletions

View file

@ -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);

View 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>