Floating action button not visible on scrolling after updating Google Support & Design Library

后端 未结 3 733
挽巷
挽巷 2020-12-29 22:59

I\'ve tried updating com.android.support:appcompat and com.android.support:design from: 25.0.1 to 25.1.0, as follows:

compile \'com         


        
3条回答
  •  温柔的废话
    2020-12-29 23:45

    The behavior has changed since support lib version 25.1.0.

    It must be the RecyclerView (Behavior) that triggers the FAB visibility change.

    In other words, it's no longer the responsibility of the object that wants to react to have a behavior but on the object that moves to be aware of everything on screen.

    Below is a link to a diff that shows the changes that are required to perform the upgrade:

    https://github.com/chrisbanes/cheesesquare/compare/master...ianhanniballake:scroll_aware_fab

提交回复
热议问题