I need to fadeout a view and I need to show it again after some user action.
So I did this :
on animation end I did :
and then when I want to show it once again I do
after which the view is not visible for some reason.
currently the only way I found to solve this issue is by doing this on animation end :
and this solves it.
Wanted to know if there's other way which is more elegant and a better practice. Thanks
You need to reset the alpha back to 1:
view.setAlpha(1f) when showing your view again.