All Projects β†’ tasomaniac β†’ Delayedprogress

tasomaniac / Delayedprogress

Licence: apache-2.0
ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the ProgressDialog will be visible for a minimum amount of time to avoid "flashes" in the UI.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Delayedprogress

Multiprogressview
πŸ“Š An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+546.32%)
Mutual labels:  progress, progress-bar, progressbar
Roundprogresstextview
TextView with Round Pogress
Stars: ✭ 18 (-81.05%)
Mutual labels:  progress, progress-bar, progressbar
React Sweet Progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 239 (+151.58%)
Mutual labels:  progress, progress-bar, progressbar
Radialprogressbar
Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable
Stars: ✭ 141 (+48.42%)
Mutual labels:  progress, progress-bar, progressbar
LineProgressbar
A light weight jquery progressbar plugin
Stars: ✭ 34 (-64.21%)
Mutual labels:  progress, progress-bar, progressbar
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+2994.74%)
Mutual labels:  progress, progress-bar, progressbar
Tqdm
A Fast, Extensible Progress Bar for Python and CLI
Stars: ✭ 20,632 (+21617.89%)
Mutual labels:  progress, progress-bar, progressbar
React Nprogress
βŒ›οΈ A React primitive for building slim progress bars.
Stars: ✭ 173 (+82.11%)
Mutual labels:  progress, progress-bar, progressbar
angular-progress-bar
This component allow you to easy incorporate progress-bar to angular/ionic project, providing binding and color options
Stars: ✭ 26 (-72.63%)
Mutual labels:  progress, progress-bar, progressbar
mp-progress
δΈ“ζ³¨δΊŽε°η¨‹εΊεœ†ηŽ―ε½’θΏ›εΊ¦ζ‘ηš„ε°ε·₯ε…·
Stars: ✭ 72 (-24.21%)
Mutual labels:  progress, progress-bar, progressbar
Ruby Progressbar
Ruby/ProgressBar is a text progress bar library for Ruby.
Stars: ✭ 1,378 (+1350.53%)
Mutual labels:  progress, progress-bar, progressbar
Python Progressbar
Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
Stars: ✭ 682 (+617.89%)
Mutual labels:  progress, progress-bar, progressbar
react-sweet-progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 250 (+163.16%)
Mutual labels:  progress, progress-bar, progressbar
ProBar
this script will allow you to configure a progress bar with a timer with other options
Stars: ✭ 0 (-100%)
Mutual labels:  progress, progress-bar, progressbar
VHProgressBar
Vartical and Horizontal ProgressBar
Stars: ✭ 23 (-75.79%)
Mutual labels:  progress, progress-bar, progressbar
Vue Step Progress
A simple Vue component that displays a Progress Bar with labels for each step
Stars: ✭ 26 (-72.63%)
Mutual labels:  progress, progress-bar, progressbar
Pb
Console progress bar for Rust
Stars: ✭ 402 (+323.16%)
Mutual labels:  progress-bar, progressbar
Theglowingloader
TheGlowingLoader is the highly configurable library to indicate progress and is natively created for Android Platform. It is an implementation of a design composed by Shashank Sahay.
Stars: ✭ 379 (+298.95%)
Mutual labels:  progress, progressbar
Node.cli Progress
βŒ›οΈ easy to use progress-bar for command-line/terminal applications
Stars: ✭ 466 (+390.53%)
Mutual labels:  progress-bar, progressbar
Ng2 Slim Loading Bar
Angular 2 component shows slim loading bar at the top of the page.
Stars: ✭ 376 (+295.79%)
Mutual labels:  progress, progress-bar

DelayedProgress

Android Arsenal Build Status License

ProgressBar and ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the they will be visible for a minimum amount of time to avoid "flashes" in the UI.

They extend platform version of them so that you can just replace all of your ProgressBar and ProgressDialog implementations quickly.

How does it look like?

Here is a demonstration of the usage in GDG Android App. As you can see here, on orientation change, the data is loaded quickly and has no progress indicator.

Usage

DelayedProgressBar

DelayedProgressBar is an extension to ProgressBar that handles automatic delaying and prevents flashes in the UI.

You can create it programatically just like you do with ProgressBar or you can use it in your XMLs.

<com.tasomaniac.android.widget.DelayedProgressBar
    android:id="@android:id/progress"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    style="?android:progressBarStyleHorizontal"/>

And you have to use show() and hide() functions instead of setting its visibility manually to have awesome delaying functionality.

Additionally we have show(boolean animate) and hide(boolean animate) that fades in and out the ProgressBar.

progressbar.show(true);

Lastly, if you want to do something when the animation ends, you can use the below function with endAction.

progressbar.show(true, new Runnable() {
    @Override
    public void run() {
        //Do something
    }
});

progressbar.hide(true, new Runnable() {
    @Override
    public void run() {
        //Do something
    }
});

DelayedProgressDialog

DelayedProgressDialog is an extension to ProgressDialog that handles automatic delaying and prevents flashes in the UI. You can use it just like ProgressDialog. Just use show() and dismiss() appropriately and it will handle the rest.

To create a DelayedProgressDialog with default timing values

DelayedProgressDialog.showDelayed(context, title, message, indeterminate, cancelable);

You can use make() to just create (without calling show()) it manually. This way you can modify it easily before calling show()

DelayedProgressDialog.makeDelayed(context, title, message, indeterminate, cancelable);

And configure

DelayedProgressDialog dialog = DelayedProgressDialog.make(...);
dialog.setMinDelay(2000);
dialog.setMinShowTime(500);
dialog.show();

Download

compile 'com.tasomaniac:delayed-progress:0.4'

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2015 Said Tahsin Dane

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].