Animated background like Timely alarm clock app
Asked Answered
E

2

12

I've seen the Timely app and it let me hypnotized with their animated background, it has bubbles floating around and

Can you plase tellme how can I do that, I've tried AnimationDrawable and ValueAnimator with AnimatorSet but that seems diferent of the timely app used

Expansive answered 19/9, 2013 at 16:57 Comment(0)
R
7

Perhaps a good way to go about looking into this is to ask how does Timely create these effects. I took a look at the APK (for educational purposes) and found this in the package ch.bitspin.timely.background:

public class BackgroundView extends FrameLayout
{
  private BackgroundGradientView a;
  private BackgroundBeamsDotsView b;
  private BackgroundCircleEffectView c;
  private BackgroundBubblesView d;

The base of the Timely animation effects are through the use of a custom View, which you can find a guide on the Android Developer website. Each of the above Views are hundreds of lines of code, but to summarize: they all utilize a background Thread that manipulates Bitmap, Paint, BitmapShader, and Canvas objects in the View's onDraw method.

I hope this helps!

Roney answered 29/12, 2013 at 16:9 Comment(0)
T
0

Have a look at the live wallpaper implementations by Android itself. This is very much close to the Timely app like effect.

The sources are in packages/wallpapers/Holospiral or packages/wallpapers/PhaseBeam.

https://android.googlesource.com/platform/packages/wallpapers/HoloSpiral/

They use renderscript to implement these.

Tourneur answered 15/7, 2014 at 8:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.