nirukk52/SnapTabLayout
소개
Snapchat에서 볼 수 있는 것처럼 부드러운 탭 레이아웃 애니메이션을 구현하는 Android 라이브러리입니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSnapTabLayout 
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
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.
👨 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.
관련 프로젝트 살펴보기
불러오는 중…