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.
Install / Use
/learn @armcha/PlayTabLayoutREADME
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.
<br/>
![]()
The current minSDK version is API level 16.
Download
Gradle:
implementation 'com.github.armcha:PlayTabLayout:2.0.0'
Download sample apk
Setup and usage
- Add AutoLinkTextView to your layout
<io.armcha.playtablayout.core.PlayTabLayout
android:id="@+id/playTabLayout"
android:layout_width="match_parent"
android:layout_height="some_dp" />
- Add tab colors
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
- And you can use it like a regular tab layout
viewPager.adapter = TabAdapter(supportFragmentManager)
val tabLayout = playTabLayout.tabLayout
tabLayout.setupWithViewPager(viewPager)
Current limitations:
You can't set
tabMode="scrollable"
and
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.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
