dialog - Android Progress Bar Task Count -


i have progress bar displaying percentage of task being completed. here screenshot: enter image description here

as can see, left text ok. want right text display number of item being loaded, not percentage left one. example, have 200 item , want rigth text should display like: 13/200, 27/200....etc. how can set property?

the "right text" named "progress", , maximum value can set progressbar.setmax(number) method.

to show progress 0 max like:

progressbar.setprogress(0);  for(int = 0; < items.length; i++) {     // stuff     progressbar.incrementprogressby(1); } 

Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -