Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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.