navasmdc / MaterialDesignLibrary

This is a library with components of Android L to you use in android 2.2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Float Button not showing

Thames1990 opened this issue · comments

I implemented the FAB as shown in my layout XML and tried to create it in my code. But the FAB isn't showing.

This is my code:
ButtonFloat buttonFloat = (ButtonFloat) getActivity().findViewById(R.id.buttonFloat);
buttonFloat.show();

Sorry but you've to implement the FloatButton in the xml file, the show function animate the FloatButton from the bottom of the screen.