I guess you have seen the new Android design guidelines, with the new \"Floating Action Button\" a.k.a \"FAB\"
For instance this pink button:
here is working code.
i use appBarLayout to anchor my floatingActionButton. hope this might helpful.
XML CODE.
Now if you paste above code. you will see following result on your device.