Skip to content

thedamfr/GoogleProgressBar

 
 

Repository files navigation

GoogleProgressBar

Android library to display different kind of google related animations for the progressBar.

Only this animation has been finished so far:

FoldingCirclesProgressBar

FoldingCirclesProgressBar

TODO

I would love to receive your pull requests to create any of the following animations or others that you think fit on this library:

Usage

Add to your ProgressBar on the xml layout:

     <ProgressBar
            android:id="@+id/google_progress"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:layout_gravity="center"/>

The animation speed can be modified easily with android:indeterminateDuration.

You also need to set in you code the drawable you want to use from the list:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.inject(this);
        mProgressBar.setIndeterminateDrawable(new you_list_option());
        //...
    }

you_list_option can be replace for:

  • FoldingCirclesDrawable

The more custom Drawables finished, the more options in this list.

Including in your project

You can either add the library to your application as a library project or add the following dependency to your build.gradle:

dependencies {
    compile 'com.jpardogo.googleprogressbar:library:(latest version)'
}

Developed By

Javier Pardo de Santayana Gómez - jpardogo@gmail.com

Follow me on Twitter Follow me on Google+ Follow me on LinkedIn
Copyright 2013 Javier Pardo de Santayana Gómez

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.

About

Android library to display progress like google does in some of his services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published