Hello,
If you want to make tick marks bigger, I create a custom drawable and set it by android:tickMark="@drawable/tickmark"
, But it is not working in com.google.android.material.slider.Slider
, if I set it to SeekBar
, it is working. And seek bar closer to your needs.
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:max="3"
android: progress="1"
android:progressTint="@color/Black"
android:progressBackgroundTint="@color/Black"
android:thumbTint="@color/Black"
android:tickMark="@drawable/tickmark"/>
If you want to custom SeekBar
in Android with labels in bottom. You can use <RelativeLayout>
layout and several <TextView>
in <LinearLayout>
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.