Need help with SnapTabLayout?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

569 Stars 46 Forks 89 Commits 0 Opened issues


Android library for fluid tablayout animation as seen on Snapchat.

Services available


Need anything else?

Contributors list

# 43,506
67 commits
# 201,584
4 commits

SnapTabLayout Tweet

Show some :heart: and star the repo to support the project

CircleCI Download Android Arsenal Material Up Android_Weekly

This library is the implementation of TabLayout as seen on popular messaging app Snapchat

It can be used to animate Three or Five tabs.

👏 Demo

snaptablayout demo 1 snaptablayout demo 2


💻 Installation

 implementation 'com.fridayof1995.tabanimation:SnapTablayout:0.0.7'

❔ Usage

Step 1

Step 2

  • Tab Number (Required)

    This parameter specifies the number of tabs required:

  • Setting the icons (Required)

    This parameter specifies the icons to be inflated: All of the below are ImageButtons so you can set image, background etc. tab_name_explain ``` tabLayout.smallCenterButton.setImageResource() tabLayout.largeCenterButton.setImageResource() tabLayout.startButton.setImageResource() tabLayout.endButton.setImageResource()

//Below required only when using five tabs. tabLayout.midStart.setImageResource() tabLayout.midEnd.setImageResource() ```

📐 Customization

  • Background (Optional)

    This parameter sets the background in extended and collapsed tab mode:

    tabLayout.setBackgroundCollapsed(R.drawable.tab_gradient_collapsed) // By default black fall gradient.
  • Color Transition in Icons (Optional)

    This parameter sets the ColorFilter in extended and collapsed tab mode: ``` // When the layout moves from expanded to collapsed: Icons color transitions from white to black. tabLayout.setTransitionIconColors(R.color.white,

* ### Color Transition in ViewPager Background (Optional)
This parameter gives a smooth color transition to the background of viewpager as seen in demo:

tabLayout.setVpTransitionBgColors(LeftSideColor: android.R.color.holopurple , CenterColor: , RightSideColor: android.R.color.holoorange_dark)

## Bugs and Feedback

For bugs, feature requests, and discussion please use GitHub Issues.

👨 Developed By

Niranjan Kurambhatti ```

📃 License

Copyright 2018 Niranjan Kurambhatti

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.