Skip to content
Advertisement

SeekBar – Can’t set starting point

When I first start my app, before the Shared Preferences are created, I want my seekbar to be set on 300px (max 600). It seems simple, as all I need to do is use setProgress and give it a value of 300. But for some reason this is not working in my code, and whatever I do, the starting point remains at 0. I was wondering if you had any idea what I am doing wrong. Many thanks.

JavaScript

To be clear “seekSpq.setProgress(currSize);” works just fine. The one that doesn’t work is “seekSpq.setProgress(300);”.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement