I am trying to create a button with wave animation. I do not want to change the size of the image, but to do effect of waves from the picture and outside.
I tried this:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<objectAnimator
android:propertyName="scaleX"
android:duration="2000"
android:valueFrom="1.0"
android:valueTo="1.3"
android:repeatMode="reverse"
android:repeatCount="infinite"
android:valueType="floatType" />
<objectAnimator
android:propertyName="scaleY"
android:duration="2000"
android:valueFrom="1.0"
android:valueTo="1.3"
android:repeatMode="reverse"
android:repeatCount="infinite"
android:valueType="floatType" />
But this changes the size of the image instead of sending a wave from it.
I want something like this: