All Projects → gaurav414u → Android Ripple Pulse Animation

gaurav414u / Android Ripple Pulse Animation

Licence: apache-2.0
A cool ripple and pulse background animation for android

Programming Languages

java
68154 projects - #9 most used programming language
ring
36 projects

Projects that are alternatives of or similar to Android Ripple Pulse Animation

VectorIntegerView
Animated integer on Android. https://habr.com/post/420919/
Stars: ✭ 17 (-80.68%)
Mutual labels:  android-animation
Ticker
An Android text view with scrolling text change animation
Stars: ✭ 4,194 (+4665.91%)
Mutual labels:  android-animation
Elasticviews
✨ An easy way to implement an elastic touch effect for Android.
Stars: ✭ 588 (+568.18%)
Mutual labels:  android-animation
RandomNumberAnimation
Easily create random number change animation to a TextView
Stars: ✭ 27 (-69.32%)
Mutual labels:  android-animation
Tickview
一个精致带感的打钩小动画
Stars: ✭ 284 (+222.73%)
Mutual labels:  android-animation
Rxanimations
Repository for android animations Rx wrapper
Stars: ✭ 488 (+454.55%)
Mutual labels:  android-animation
Shimmerlayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge.
Stars: ✭ 2,424 (+2654.55%)
Mutual labels:  android-animation
Androidsnowfall
Snowfall App Demo
Stars: ✭ 8 (-90.91%)
Mutual labels:  android-animation
Android Extensions
An Android library with modules to quickly bootstrap an Android application.
Stars: ✭ 356 (+304.55%)
Mutual labels:  android-animation
Audio Visualizer Android
🎵 [Android Library] A light-weight and easy-to-use Audio Visualizer for Android.
Stars: ✭ 581 (+560.23%)
Mutual labels:  android-animation
ShoppingCartAnimation
Shopping bag animation with zoom and Bezier curves
Stars: ✭ 29 (-67.05%)
Mutual labels:  android-animation
koleton
The easiest library to show skeleton screens in an Android app.
Stars: ✭ 84 (-4.55%)
Mutual labels:  android-animation
Motionlayoutexamples
🆒 Motion layout animation examples
Stars: ✭ 543 (+517.05%)
Mutual labels:  android-animation
android-gallery
Shared element transition example with RecyclerView and ViewPager.
Stars: ✭ 38 (-56.82%)
Mutual labels:  android-animation
Animationsplayground
This repo is an attempt to implement a complex animation
Stars: ✭ 630 (+615.91%)
Mutual labels:  android-animation
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+148.86%)
Mutual labels:  android-animation
Mediumclap Android
👏 The Medium's Clapping Effect developed in Android
Stars: ✭ 485 (+451.14%)
Mutual labels:  android-animation
Confetti
An Android particle system library for displaying confetti!
Stars: ✭ 1,194 (+1256.82%)
Mutual labels:  android-animation
Ubercaranimation
A demo app showing movement of car on map like in Uber.
Stars: ✭ 643 (+630.68%)
Mutual labels:  android-animation
Animation Tutorials
🍭🚀💗 Tutorials about animations with Animators, Animated Vector Drawables, Shared Transitions, and more
Stars: ✭ 557 (+532.95%)
Mutual labels:  android-animation

android-ripple-pulse-animation

A cool ripple and pulse background animation for android with configurable color, start radius, end radius, animation duration etc.

Dependencies

dependencies {
    compile 'com.gauravbhola.ripplepulsebackground:library:1.0.0'
}
//for gradle 3 and above
dependencies {
    implementation 'com.gauravbhola.ripplepulsebackground:library:1.0.0'
}

Proguard

-keep class com.gauravbhola.ripplepulsebackground.RipplePulseLayout$RippleView { *; }

Usage

The following properties can be used either in Layout or Programatically

  • duration : Duration in milliseconds for the ripple animation
  • ripple_color : ARGB color for the pulse/ripple
  • start_radius : Starting radius of the pulse
  • end_radius : Ending radius of the pulse
  • ripple_type : Ripple type. Accepted values : 'fill', 'stroke'(ring type)
  • stroke_width : The width of the ring if using ripple_type = stroke

Layout

<com.gauravbhola.ripplepulsebackground.RipplePulseLayout
          android:layout_width="200dp"
          android:layout_height="200dp"
          android:clipChildren="false"
          ripple:rippleColor="#3D66C7"
          ripple:rippleType="stroke"
          ripple:strokeWidth="2dp"
          ripple:startRadius="42dp"
          ripple:endRadius="100dp"
          ripple:duration="2000"
          android:id="@+id/layout_ripplepulse">

      <com.gauravbhola.ripplepulsebackground.sample.views.RoundedImageView
              android:layout_width="90dp"
              android:layout_height="90dp"
              android:layout_centerInParent="true"
              android:src="@drawable/contact"/>
</com.gauravbhola.ripplepulsebackground.RipplePulseLayout>

Activity

public class MainActivity extends AppCompatActivity {
    RipplePulseLayout mRipplePulseLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mRipplePulseLayout = findViewById(R.id.layout_ripplepulse);
    }
}

start animation

mRipplePulseLayout.startRippleAnimation();

stop animation

mRipplePulseLayout.stopRippleAnimation();

Developed By

License

Copyright 2017 **Gaurav Bhola**

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].