Giter Site home page Giter Site logo

loading-balls's People

Contributors

glomadrian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loading-balls's Issues

Set Cancelable Flage

Hi the loader is awesome.
Just wanted to add not an issue actually but a suggestion.
Can we have setCancelable("false") something like Dialog.

Thanks,
Abhijit

Wrong gradle depencency in README

You have a wrong gradle depencency in your readme:

  compile 'com.github.glomadrian:loading-balls:1.1@aar'

It should be (according to your maven repository):

compile 'com.github.glomadrian:loadingballs:1.1@aar'

-> without the dash between "loading" and "balls".

ClassNotFoundError : BaseInterpolator

Hi,,

On some devices (eg : my Asus Zenfone 2), using BallView make my app crash (i receive a SIGSERV error).
After some researches, i found that the error was due to the usage of BaseInterpolator class that cannot be found.
Indeed, this class is only available from API 22, making the app crash.
http://developer.android.com/reference/android/view/animation/BaseInterpolator.html

One solution is to replace the BaseInterpolator reference with Interpolator interface.

Add support for creating BallView programmtically

It would be nice if you add support for creating the BallView programmtically. You should add getters and setters for all the custom attributes (numberOfBalls, ballSize, minBallSize, maxBallSize, .....).
Otherwise I have to implement AttributSet just available as an interface.

Auto start/stop with visibility change

Could you please add an option to auto start and stop the animations when the visibility changes i.e. start animations when View.VISIBLE otherwise stop animations (both INVISIBLE and GONE)?

I am trying to to manually start, stop and restart animations but I am getting a lot of NullPointerExceptions because of null ballPathAnimator. The animator is created in the onSizeChanged(...) and that method is not yet called when a Fragment's onResume() is called, thus NPE crash. Automatic start/stop will solve all this troubles. Thank you for this beautiful loading indicator.

Balls don't always respect configurations

I have included the balls in the xml of several fragments complete with customization but it only a few of them respect the customization. The other instances default to the configuration that comes with the library, i.e 3 balls of yellow, blue and red color.

This is my implementation:
<com.github.glomadrian.loadingballs.BallView android:id="@+id/ballView" android:layout_width="100dp" android:layout_height="100dp" android:layout_centerInParent="true" android:layout_gravity="center" android:layout_margin="30dp" lib:ball_colors="@array/color" lib:balls="5" lib:enable_size_animation="true" lib:max_ball_size="12dp" lib:min_ball_size="5dp" lib:movement_cycle_time="1500" lib:size_cycle_time="500" />

where the array of color has 5 different shades of red.

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.