I'm trying to set the elevation of a AppBarLayout
via code. When I do app:elevation
in the XML it works without a hitch, however when I do
appBarLayout.setElevation(0);
It doesn't work.
My assumption is its calling the equivalent of android:elevation
.
Any ideas?