Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iammert/animatedtablayout
Yet another android tab layout
https://github.com/iammert/animatedtablayout
android animation customview kotlin tablayout tabs
Last synced: 4 days ago
JSON representation
Yet another android tab layout
- Host: GitHub
- URL: https://github.com/iammert/animatedtablayout
- Owner: iammert
- Created: 2018-04-29T17:41:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T09:31:29.000Z (over 2 years ago)
- Last Synced: 2024-12-13T23:07:41.804Z (11 days ago)
- Topics: android, animation, customview, kotlin, tablayout, tabs
- Language: Kotlin
- Homepage:
- Size: 5.83 MB
- Stars: 796
- Watchers: 11
- Forks: 75
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnimatedTabLayout
Yet another tab layout.# GIF
# Motivation
Thanks to [Igor](https://dribbble.com/motionigor) for sharing this awesome animation. I motivated myself to create android library.[Check out the concept](https://www.uplabs.com/posts/phone-app-animation-asus-zenui-6-0-concept)
# Setup
* Create your tabs file under res/xml/ folder.
```html
```
* Add tabs
```xml```
* Setup with viewpager or listen change on tab click.
```kotlin
atl.setupViewPager(viewpager)
atl.setTabChangeListener(object : AnimatedTabLayout.OnChangeListener {
override fun onChanged(position: Int) {
}
})
```# Dependency
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}dependencies {
implementation 'com.github.iammert:AnimatedTabLayout:0.1'
}
```# TODO
- [ ] Animated Vector Drawable on tab expand.
- [ ] tabMode support(scrolling, fixed)License
--------Copyright 2018 Mert Şimşek.
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 athttp://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.