Giter Site home page Giter Site logo

wp7progressbar's Introduction

Windows Phone Awsome Progress Bar

This library aims to bring awsome windows phone 7 and windows 10 progress bar to android applications. Here is the example:

Windows 10 Windows Phone 7

Add jitPack maven to your project level repositories:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

Then put this line in your module level gradle:

implementation 'com.github.shadowalker77:wp7progressbar:1.0.1'

Now you can use these two awesome progress bar:

  • WP7ProgressBar
  • WP10ProgressBar

WP7ProgressBar

Add this lines to your layout:

<ir.alirezabdn.wp7progress.WP7ProgressBar
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

WP10ProgressBar

Add this lines to your layout:

<ir.alirezabdn.wp7progress.WP10ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

Customization

Features of both of these views can be customzied, for example for WP7ProgressBar:

<ir.alirezabdn.wp7progress.WP7ProgressBar
        android:id="@+id/wp7progressBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        app:animationDuration="2300"
        app:indicatorColor="@color/colorProgressBar"
        app:indicatorHeight="7"
        app:indicatorRadius="5"
        app:interval="100" />

Show and Hide them

There are two methods which you will use to show and hide these views. For both of them, in your java code:

WP7ProgressBar progressBar = findViewById(R.id.progressBar);
// for showing
progressBar.showProgressBar();
// for hiding
progressBar.hideProgressBar();

Extra Feature

You can use these progress bars for api calls easly. How?

  • Parallel API call: In case of parallel api call, if you call showProgressBar() method x times, you have to call hideProgressBar() method x times as well. So progress bar will continue to show until you call exactly x time.
  • Series API call: In this case, if you call hideProgressBar() method then call showProgressBar() method after that immediately, progress bar will not hide and show itself in order to give user a better experience.

Contact

If you had any question or problem, please do not hesitate to contact me: email address: [email protected]

wp7progressbar's People

Contributors

shadowalker77 avatar

Watchers

Michael jentsch avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.