![]() ![]() I put another example within the code so that you understand the math.įor requirements like this I have created Utility to customize Seekbar progress like below code: ![]() And finally when you want to retrieve the value in the range you New void onStopTrackingTouch(SeekBar seekBar) void onStartTrackingTouch(SeekBar seekBar) void onProgressChanged(SeekBar seekBar, int progress, this means that you have 21 possible values in the seekbar. If you want values from 3 to 5 with a step of 0.1 (3, 3.1, 3.2. To set the value from 60 to 180 with a step of 1: int step = 1 You cannot set the min value of a SeekBar (always 0) and you cannot set the step value of a SeekBar (always 1).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |