Tapadoo / Alerter

An Android Alerting Library
MIT License
5.52k stars 633 forks source link

Disable onClick animation? #226

Open nathan-fiscaletti opened 4 years ago

nathan-fiscaletti commented 4 years ago

Is there a way to disable the click animation when tapping on the notification but still support the onClick handler?

Preview

kpmmmurphy commented 4 years ago

Hey @nathan-fiscaletti, there's no API for this, but you may be able to nullify the foreground drawable on the AlertView, which I believe is handling this animation.

nathan-fiscaletti commented 4 years ago

Hey @nathan-fiscaletti, there's no API for this, but you may be able to nullify the foreground drawable on the AlertView, which I believe is handling this animation.

Can you share some code on how one might do this?