
FlycoTabLayout
An Android library providing customizable tab bar widgets with indicators and unread badges.
- Stars
- 11.1k
- Forks
- 2.4k
- Licence
- MIT
- Language
- Java
- Last update
- 3.4 years ago
- Type
- Library
No commits in over a year — check for forks or alternatives before adopting.
What it is
FlycoTabLayout is a Java library for Android apps that adds tab bars, the row of tabs used to switch between screens or pages. It offers three tab types: SlidingTabLayout (tied to ViewPager), CommonTabLayout (works independently of ViewPager), and SegmentTabLayout. Developers use it to customize indicators, text, icons, and unread-message tips without building tab bars from scratch.
- Add a scrolling tab strip above a set of fragments using SlidingTabLayout
- Build a bottom-style tab bar with icons using CommonTabLayout
- Show unread message counts on individual tabs
- Create a segmented control with SegmentTabLayout
Great for
- Android developers who want a ready-made tab bar with styling options
- Apps that use ViewPager and need a sliding tab strip with indicators
- Projects that need tabs with icons or unread-message badges
- Developers who want tab bars that work without ViewPager
Not ideal for
- Teams building with Jetpack Compose, since the README describes only Android View-based widgets and does not mention Compose
- Non-Android projects such as iOS or web, because it is an Android library
- Developers who need the latest Android Material tab components, as the README does not compare against them and the last push was in May 2023
How to get it
- 1
Install with a package manager
You'll need: Android Studio with Gradle · Android project using AndroidX
Add dependency in build.gradle (Gradle)
implementation 'io.github.h07000223:flycoTabLayout:3.0.0' - 2
Run it
- Add the implementation dependency to your module's build.gradle file
- Sync the Gradle project
- Add a SlidingTabLayout or CommonTabLayout element to your layout XML
- Connect it to a ViewPager or set tab data in code using the README's methods
- 3
Get the most out of it
- Use the tl_indicator_style attribute to choose NORMAL, TRIANGLE, or BLOCK indicators
- Use tl_indicator_anim_enable and tl_indicator_bounce_enable for animated indicators in CommonTabLayout
- Use tl_indicator_width_equal_title to match the indicator width to the title text in SlidingTabLayout
- Use tl_iconGravity and tl_iconMargin to position icons relative to text in CommonTabLayout
- Use setTabData with a FragmentManager to let CommonTabLayout switch fragments itself
Downloads
Strengths
- Supports three distinct tab styles for different layouts
- Configurable through a documented list of XML attributes
- Published on Maven Central and MIT licensed
Trade-offs
- Last code push was 2023-05-28 and the latest release is v2.0.2, while the README's Gradle example uses 3.0.0, so maintenance status and version alignment are unclear
- README is brief and gives little detail beyond attribute lists and short code snippets
- Some attributes apply only to CommonTabLayout or SlidingTabLayout, which adds setup complexity
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.