mdsami / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Use Activity.setProgressBarIndeterminateVisibility as progress bar #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would really appreciate, if it would be possible to use the built-in title 
progress bar as a progress bar for ajax calls. As I quickly looked through the 
source code, perhaps it might be only a little change in Common.

Since the setProgressBarIndeterminateVisibility is a method of Activity, the 
Common.showProgress could add one more test (if the progress variable is 
instance of Activity) which would call 
setProgressBarIndeterminateVisibility(show);

Original issue reported on code.google.com by matej...@gmail.com on 27 Apr 2012 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 28 Apr 2012 at 10:33

GoogleCodeExporter commented 8 years ago
Feature added to 0.22.4 beta here:

http://code.google.com/p/android-query/downloads/list

Original comment by tinyeeliu@gmail.com on 28 Apr 2012 at 11:56

GoogleCodeExporter commented 8 years ago
I was thinking about this and IMHO this will stop working as soon as someone 
uses it twice at the same time. When the first request is finished, the 
progressbar will be hidden, although the second request is still running. It 
will be probably necessary to implement a counter of active uses of the 
built-in progress bar and hide it only when the counter = 0.

Original comment by matej...@gmail.com on 28 Apr 2012 at 9:51

GoogleCodeExporter commented 8 years ago
ya a counter would be better.

sent from mobile
On Apr 29, 2012 5:51 AM, <android-query@googlecode.com> wrote:

Original comment by tinyeeliu@gmail.com on 1 May 2012 at 4:02

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 1 May 2012 at 3:20

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 1 May 2012 at 3:20

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 17 Jul 2012 at 6:39