Description
This library is the implementation of TabLayout as seen on popular messaging app Snapchat Snapchat.com.
It can be used to animate Three or Five tabs.
SnapTabLayout alternatives and similar packages
Based on the "UI Widget" category.
Alternatively, view SnapTabLayout alternatives based on common mentions on social networks and blogs.
-
EffectiveAndroidUI
Sample project created to show some of the best Android practices to work in the Android UI Layer. The UI layer of this project has been implemented using MVP or MVVM (without binding engine) to show how this patterns works. This project is used during the talk "EffectiveAndroidUI". -
ShowcaseView
DISCONTINUED. Highlight the best bits of your app to users quickly, simply, and cool...ly -
GreenDroid
GreenDroid is a development library for the Android platform. It makes UI developments easier and consistent through your applications. -
FancyToast-Android
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code. -
Smiley Rating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. -
ParallaxEverywhere
Parallax everywhere is a library with alternative android widgets with parallax effects. -
FancyAlertDialog-Android
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code. -
MaterialBanner
A library that provides an implementation of the banner widget from the Material design. -
Custom-Calendar-View
DISCONTINUED. The CustomCalendarView provides an easy and customizable calendar to create a Calendar. It dispaly the days of a month in a grid layout and allows to navigate between months -
Aesthetic GraphView
This is a custom graph library where you can customize the graph as you want. The key features are you can take the full control over drawing the path, change the gradient color (Start Color - End Color), Change the circle color, Change the circle radius, Change the path color, Change the line thickness, On/Off Gridlines, Change the grid line color, On/Off Graduations, Change the graduation text color, Draw graph with different starting point, Draw graph from the left border (X0 - coordinate), Draw graph with exact coordinates given, Draw graph from left border and stretch until the end of the screen and it is Supported on OS - JellyBean 4.1 and above -
FingerSignView
A simple library to let you sign (or draw lines) smoothly with your finger into a view and save it. -
Horizontal Calendar View
A simple library to display a horizontal calendar with custom start and end date, and mark events with a background
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SnapTabLayout or a related project?
README
SnapTabLayout
Show some :heart: and star the repo to support the project
This library is the implementation of TabLayout as seen on popular messaging app Snapchat Snapchat.com.
It can be used to animate Three or Five tabs.
👏 Demo
Contents
- [Installation](#💻-Installation)
- [How to use / Sample](#❔-Usage)
- [Customization](#📐-Customization)
- Bugs and feedback
💻 Installation
implementation 'com.fridayof1995.tabanimation:SnapTablayout:0.0.7'
❔ Usage
Step 1
<com.fridayof1995.tabanimation.SnapTabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
.
.
custom:numOfTabs="three"
/>
Step 2
Tab Number (Required)
This parameter specifies the number of tabs required:
setNumOfTabs(SnapTabLayout.NumOfTabs.THREE); or setNumOfTabs(SnapTabLayout.NumOfTabs.FIVE);
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.
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. tabLayout.setBackgroundExpanded(R.drawable.tab_gradient_expanded)
* ### 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, R.color.black)
* ### 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.holo_purple , CenterColor: android.R.color.black , RightSideColor: android.R.color.holo_orange_dark)
## Bugs and Feedback
For bugs, feature requests, and discussion please use [GitHub Issues](https://github.com/nirukk52/SnapTabLayout/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
http://www.apache.org/licenses/LICENSE-2.0
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.
*Note that all licence references and agreements mentioned in the SnapTabLayout README section above
are relevant to that project's source code only.