Skip to content

huluwa-dev/MagicTabLayout

Repository files navigation

MagicTabLayout

This is a magic TabLayout.

How to use it

Add this line to build.gradle.

implementation 'com.huluwa.lib.magictablayout:MagicTabLayout:1.1.1'

And then use it like the code below.

<com.huluwa.lib.magictablayout.MagicTabLayout
        android:id="@+id/magicLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingHorizontal="5dp"
        app:animateSelected="true"
        app:bgColor="@color/colorAccent"
        app:bottomRadius="10dp"
        app:gapSize="4dp"
        app:layout_constraintTop_toTopOf="parent"
        app:normalTextColor="@color/white"
        app:normalTextSize="13sp"
        app:selectDrawable="@drawable/huluwa"
        app:selectTextColor="@color/red"
        app:selectedTextSize="14sp"
        app:titleIconDrawable="@drawable/icon"
        app:titleIconPadding="4dp"
        app:topRadius="10dp" />

image

About

This is a magic TabLayout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages