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 share | improve this ques...