I want to call some action when wave has covered my screen while holding an button, i implement the motion event action up and down as well.
Actually,
When the wave covers my screen fully and i release that button,action up called for that button and
i check the
if(waterLevelAnim.getAnimatedFraction()==1.0)
it works
But i want to check this thing while holding the button,not releasing the button.
I want to call some action when wave has covered my screen while holding an button, i implement the motion event action up and down as well. Actually, When the wave covers my screen fully and i release that button,action up called for that button and i check the if(waterLevelAnim.getAnimatedFraction()==1.0) it works But i want to check this thing while holding the button,not releasing the button.
Please help me to solve this.