0

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

enter image description here

Please suggest some solution for this Thanks in advance.

CarinaMj
  • 187
  • 2
  • 14

1 Answers1

0

you can use following library to achieve your goal take a look below libray

AskNilesh
  • 67,701
  • 16
  • 123
  • 163