I have done the seekbar but I need to do the customization like the below image.
I used the code like this
<SeekBar
android:id="@+id/seekbarPoints"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="-16dp"
android:layout_marginTop="@dimen/small"
android:max="0"
android:progress="0"
android:progressDrawable="@drawable/shape_seekbar_points_style"
android:thumb="@null" />
if (TextUtils.isDigitsOnly(maxPoints)) {
int maxP = Integer.parseInt(maxPoints);
mBinding.seekbarPoints.setMax(maxP);
if (!TextUtils.isEmpty(points)) {
int p = (int) Double.parseDouble(points);
mBinding.seekbarPoints.setProgress(p);
}
}
mBinding.seekbarPoints.setProgressDrawable(ContextCompat.getDrawable(getContext(), R.drawable.shape_seekbar_points_style));
In this image there should be a current points showing textView like the image below
Please suggest some solution for this Thanks in advance.