Skip to content
Werner Kunze edited this page Apr 11, 2022 · 12 revisions

Stand With Ukraine

Welcome to the smooth-app-bar-layout wiki - Smooth version of Google Support Design AppBarLayout!

Installation

compile "me.henrytao:smooth-app-bar-layout:<latest-version>"

smooth-app-bar-layout is deployed to jCenter. Make sure you have jcenter() in your project gradle.

Important Notes

  • Remember to set android:id for me.henrytao.smoothappbarlayout.SmoothAppBarLayout in layout file so that it can call onSaveInstanceState and onRestoreInstanceState correctly. Otherwise, it won't work correctly with onOrientationChanged.
  • Remember to set android:minHeight for me.henrytao.smoothappbarlayout.SmoothAppBarLayout in layout file if you use ViewPager. In general, this height should have the same value as TabLayout's height.
  • clipToPadding in RecyclerView won't work. You have to set HeaderHolder in apdater and it has to be placed at index 0.

More information

  • Check out download badge in README to know latest version.
  • Check out sidebar for more information about features and APIs.
Clone this wiki locally