Popularity
0.7
Stable
Activity
0.0
Stable
7
2
1

Programming language: Kotlin
License: MIT License
Tags: Kotlin     UI Widget     Android-library     Animation     TabLayout    
Latest version: v1.1.0

AnimatedTabLayout alternatives and similar packages

Based on the "UI Widget" category.
Alternatively, view AnimatedTabLayout alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of AnimatedTabLayout or a related project?

Add another 'UI Widget' Package

README

AnimatedTabLayout

A nice Animated TabLayout for Android

Demo

AnimatedTabLayout

Usage

Gradle
dependencies {
   implementation 'com.github.sjaramillo10:AnimatedTabLayout:1.0.3'
}

Use it in your layouts:

<com.sjaramillo10.animatedtablayout.AnimatedTabLayout
    android:id="@+id/animatedTabLayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary" />

You can change some attributes, these are the default values:

<com.sjaramillo10.animatedtablayout.AnimatedTabLayout
        android:id="@+id/animatedTabLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/colorPrimary"
        app:tabAnimationDuration="500"
        app:selectedTabTextColor="@color/white"
        app:unselectedTabTextColor="@color/semiTransparentWhite"
        app:tabSmallTextSize="16sp"
        app:tabBigTextSize="20sp"
        app:tabBoldText="false"/>

Depending on the number of tabs you may want to use the scrollable attribute:

app:tabMode="scrollable"

For this release I am extending from the standard TabLayout and therefore all of its attributes are available for the AnimatedTabLayout, however as I am adding a custom view to each tab some attributes like the following will have no effect:

app:tabTextColor app:tabSelectedTextColor app:tabIndicatorColor app:tabIndicatorHeight app:tabTextAppearance

For a future release I am planning to avoid extending from TabLayout to avoid wasting space for unused methods and also have some improvements in mind. Stay tuned.