https://github.com/armcha/playtablayout
PlayTabLayout is a tab layout very similar to Google Play tab layout. The main feature is that ripple shows in a particular place where user taps.
https://github.com/armcha/playtablayout
android animation circularreveal googleplay kotlin tablayout
Last synced: 11 months ago
JSON representation
PlayTabLayout is a tab layout very similar to Google Play tab layout. The main feature is that ripple shows in a particular place where user taps.
- Host: GitHub
- URL: https://github.com/armcha/playtablayout
- Owner: armcha
- Created: 2017-10-11T14:54:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T11:49:24.000Z (over 7 years ago)
- Last Synced: 2025-03-29T05:06:57.304Z (12 months ago)
- Topics: android, animation, circularreveal, googleplay, kotlin, tablayout
- Language: Kotlin
- Homepage:
- Size: 2.69 MB
- Stars: 328
- Watchers: 13
- Forks: 64
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PlayTabLayout
PlayTabLayout is a tab layout very similar to Google Play tab layout. The main feature is that ripple shows in a particular place where user taps.


The current minSDK version is API level 16.
### Download
-----------------------
Gradle:
```groovy
implementation 'com.github.armcha:PlayTabLayout:2.0.0'
```
### Download sample [apk](https://github.com/armcha/PlayTabLayout/tree/master/art/app.apk)
## Setup and usage
1. Add AutoLinkTextView to your layout
```xml
```
2. Add tab colors
```kotlin
playTabLayout.colors = intArrayOf(
R.color.f,
R.color.s,
R.color.t,
R.color.four)
```
### Note: array must be the same size as your adapter item count
3. And you can use it like a regular tab layout
```kotlin
viewPager.adapter = TabAdapter(supportFragmentManager)
val tabLayout = playTabLayout.tabLayout
tabLayout.setupWithViewPager(viewPager)
```
### Current limitations:
You can't set
```java
tabMode="scrollable"
```
and
```java
tabGravity="center"
```
## Contact
Pull requests are more than welcome.
- **Email**: chatikyana@gmail.com
- **Twitter**: https://twitter.com/ArmanChatikyan
- **Google +**: https://plus.google.com/+ArmanChatikyan
- **Website**: https://armcha.github.io/
- **Medium**: https://medium.com/@chatikyan
License
--------
PlayTabLayout
Copyright (c) 2018 Arman Chatikyan (https://github.com/armcha/PlayTabLayout).
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.