Animated selector showing "Element selector must be declared"

I try to raise FAB when pressed. This is an app from a material design course. The application works, the button presses and ruffles, but does not raise. The selector tag gives an error. I read a message saying that he needs to be in the folder how to make a selector in Android studio, but in this case it does not work.

anim.xml

+4
source share
1 answer

Renaming the folder animatorinstead worked for me anim. Hovering over the error showed that the folder should be named like this. The error disappeared after right-clicking on the folder and selecting refactoring, and thus renaming the folder ( anim) in Android Studio.

+2
source

Source: https://habr.com/ru/post/1648066/


All Articles