Using App namespace in style
Solution 1:
For app
namespace you don't need to specify app:<property name>
. Just <property name>
is enough.
For example
<style name="FabStyle" parent="Widget.Design.FloatingActionButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_margin">16dp</item>
<item name="backgroundTint">@color/accent</item>
<item name="layout_anchorGravity">end|bottom</item>
</style>
And for layout_anchorGravity
you need to set it in XML file where you are defining Floating action button.