Skip to content

Commit c288503

Browse files
committed
[Fix] Use AppCompatTextView instead of TextView.
1 parent aa8713b commit c288503

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

library/src/main/java/me/zhanghai/android/fastscroll/FastScroller.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
import androidx.annotation.NonNull;
3535
import androidx.annotation.Nullable;
36+
import androidx.appcompat.widget.AppCompatTextView;
3637
import androidx.core.math.MathUtils;
3738
import androidx.core.util.Consumer;
3839

@@ -100,7 +101,7 @@ public FastScroller(@NonNull ViewGroup view, @NonNull ViewHelper viewHelper,
100101
mTrackView.setBackground(trackDrawable);
101102
mThumbView = new View(context);
102103
mThumbView.setBackground(thumbDrawable);
103-
mPopupView = new TextView(context);
104+
mPopupView = new AppCompatTextView(context);
104105
mPopupView.setLayoutParams(new FrameLayout.LayoutParams(
105106
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
106107
popupStyle.accept(mPopupView);

0 commit comments

Comments
 (0)