GithubHelp home page GithubHelp logo

dynamitechetan / flowing-gradient Goto Github PK

View Code? Open in Web Editor NEW
707.0 16.0 92.0 225 KB

Android Library to make a flowing gradient effect, similar to that used in Instagram Android login screen

Java 100.00%
instagram android gradient transition gradient-animations android-library colors

flowing-gradient's People

Contributors

dynamitechetan avatar maksim-m 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

flowing-gradient's Issues

Error while using in RecyclerView

I got this error while trying to use it in the RecyclerView:

Caused by: java.lang.ClassCastException: com.dynamitechetan.flowinggradient.FlowingGradient cannot be cast to android.view.ViewGroup

FlowingGradient should call TypedArray.recycle() method

FlowingGradient should call TypedArray.recycle() method

   TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.FlowingGradient, 0, 0);

        draw = a.getResourceId(R.styleable.FlowingGradient_transition_drawable, R.drawable.translate);
        duration = a.getInt(R.styleable.FlowingGradient_transition_duration, 75);
       //should be called 
 a.recycle();

how to stop?

hi thanks for the beautiful lib :)
how to stop animation and freeze the view?

thanks...

OutOfMemory

After I add your library into my project I got out Of memory exception after sometimes:

Caused by: java.lang.OutOfMemoryError: Failed to allocate a

colors change so fast

hey,im using this library so far so good but there is a problem color changes ,its not like it changes slowly from a color to another but it changes like these are different slides with different colors .i tried to make my own animation but gradient:transition_drawable doesn't work please help me thanks!

Gradients do not bleed into each other

Hi.

I was wondering if the library was design to bleed the gradients between each other. At the moment, there doesn't appear to be any transition other than jumping between each other

Samsung galaxy s3 mini no looping of gradient transition

After one transition appear after it it will not happened.
FlowingGradientClass grad = new FlowingGradientClass();
grad.setBackgroundResource(R.drawable.translate)
.onRelativeLayout((RelativeLayout) findViewById(R.id.musicBg))
.setTransitionDuration(4000)
.start();

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.