How to animate FloatingActionButton of new Design Support Library

后端 未结 5 1656
梦谈多话
梦谈多话 2020-12-28 09:06

I am using a TabLayout with 5 different fragments. On 3 of these fragments a android.support.design.widget.FloatingActionButton should appear. Right now I simpl

5条回答
  •  难免孤独
    2020-12-28 09:44

    The hide/show animation for shrink/pop are automatically handled by the new version of the Support Library.(22.2.1) Then OnTabChange listener show or hide the floating action button using show/hide methods provided by the new library.

    fab.show(); or fab.hide();

提交回复
热议问题