| Start |
|---|
Define a step value of 7 Remarks1- Add the increment attribute in attrs.xml 2- Define a default value in RangeSeekBar.java and create the attribute also 3- Init the increment value in private void init(Context context, AttributeSet attrs) 4- Define the increment value in protected synchronized void onDraw(@NonNull Canvas canvas) You'll have to replace the minText and maxText value. So instead of :
You'll have : int x; 5 - Now you just have to use it. Hope it helps |
Read Article
https://develop.horje.com/learn/1434/reference