1

How can I design a bouncing background animation in Android? I want to this animation without any event raise.

enter image description here

Any help is appreciated.

Dhiren
  • 592
  • 5
  • 16

1 Answers1

1

Create a bouncing_bg.xml in your app's drawable folder.

<ripple
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="#aeaeae" />

and add the following line to the View to which you want to show the effect.

android:foreground="@drawable/bouncing_bg"

Note : This will only work in API Level 21 and above.

Abbas
  • 3,529
  • 5
  • 36
  • 64