This is a fork from https://github.com/TristanWiley/FloatingActionMenu, I modified it to support both circle and line menu. The sample shows how to use it.
I got the original code from douo here - gist.github.com/douo/dfde289778
I modified the code so it looks better, there's spacing between the buttons. See the example on how to use it.