set large int to progressbar android
up vote
0
down vote
favorite
how can set large number to progressbar for example 25000 second
and start progress from 0 until 25000 between 100 percent of progressbar.
I have some example code
<ProgressBar
android:layout_alignParentBottom="true"
android:id="@+id/customProgress"
style="@style/CustomProgressBar"
android:indeterminate="false"
android:layout_height="30dp"
android:layout_width="match_parent"/>
and
private void progress(final int progressMax)
new Thread(new Runnable()
public void run()
while (progressStatus < progressMax)
progressStatus += 1;
handler.post(new Runnable()
public void run()
progressBar.setProgress(progressStatus);
progressBar.setMax(progressMax);
);
try
Thread.sleep(1000);
catch (InterruptedException e)
e.printStackTrace();
).start();
if set this in adapter and set into listview progressbar dont work .
android progress-bar
add a comment |
up vote
0
down vote
favorite
how can set large number to progressbar for example 25000 second
and start progress from 0 until 25000 between 100 percent of progressbar.
I have some example code
<ProgressBar
android:layout_alignParentBottom="true"
android:id="@+id/customProgress"
style="@style/CustomProgressBar"
android:indeterminate="false"
android:layout_height="30dp"
android:layout_width="match_parent"/>
and
private void progress(final int progressMax)
new Thread(new Runnable()
public void run()
while (progressStatus < progressMax)
progressStatus += 1;
handler.post(new Runnable()
public void run()
progressBar.setProgress(progressStatus);
progressBar.setMax(progressMax);
);
try
Thread.sleep(1000);
catch (InterruptedException e)
e.printStackTrace();
).start();
if set this in adapter and set into listview progressbar dont work .
android progress-bar
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
how can set large number to progressbar for example 25000 second
and start progress from 0 until 25000 between 100 percent of progressbar.
I have some example code
<ProgressBar
android:layout_alignParentBottom="true"
android:id="@+id/customProgress"
style="@style/CustomProgressBar"
android:indeterminate="false"
android:layout_height="30dp"
android:layout_width="match_parent"/>
and
private void progress(final int progressMax)
new Thread(new Runnable()
public void run()
while (progressStatus < progressMax)
progressStatus += 1;
handler.post(new Runnable()
public void run()
progressBar.setProgress(progressStatus);
progressBar.setMax(progressMax);
);
try
Thread.sleep(1000);
catch (InterruptedException e)
e.printStackTrace();
).start();
if set this in adapter and set into listview progressbar dont work .
android progress-bar
how can set large number to progressbar for example 25000 second
and start progress from 0 until 25000 between 100 percent of progressbar.
I have some example code
<ProgressBar
android:layout_alignParentBottom="true"
android:id="@+id/customProgress"
style="@style/CustomProgressBar"
android:indeterminate="false"
android:layout_height="30dp"
android:layout_width="match_parent"/>
and
private void progress(final int progressMax)
new Thread(new Runnable()
public void run()
while (progressStatus < progressMax)
progressStatus += 1;
handler.post(new Runnable()
public void run()
progressBar.setProgress(progressStatus);
progressBar.setMax(progressMax);
);
try
Thread.sleep(1000);
catch (InterruptedException e)
e.printStackTrace();
).start();
if set this in adapter and set into listview progressbar dont work .
android progress-bar
android progress-bar
asked Nov 10 at 13:31
mr.Satan
816
816
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239460%2fset-large-int-to-progressbar-android%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password