-
Notifications
You must be signed in to change notification settings - Fork 240
Home
Werner Kunze edited this page Apr 11, 2022
·
12 revisions
Welcome to the smooth-app-bar-layout wiki - Smooth version of Google Support Design AppBarLayout!
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.
- Remember to set
android:id
forme.henrytao.smoothappbarlayout.SmoothAppBarLayout
in layout file so that it can callonSaveInstanceState
andonRestoreInstanceState
correctly. Otherwise, it won't work correctly withonOrientationChanged
. - Remember to set
android:minHeight
forme.henrytao.smoothappbarlayout.SmoothAppBarLayout
in layout file if you useViewPager
. In general, this height should have the same value as TabLayout's height. -
clipToPadding
inRecyclerView
won't work. You have to set HeaderHolder in apdater and it has to be placed at index 0.
- Check out download badge in README to know latest version.
- Check out sidebar for more information about features and APIs.