library

ScaleTabLayout

License

License

GroupId

GroupId

com.github.iwgang
ArtifactId

ArtifactId

scaletablayout
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

aar
Description

Description

library
ScaleTabLayout
Project URL

Project URL

https://github.com/iwgang/ScaleTabLayout
Source Code Management

Source Code Management

https://github.com/iwgang/ScaleTabLayout

Download scaletablayout

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.iwgang/scaletablayout/ -->
<dependency>
    <groupId>com.github.iwgang</groupId>
    <artifactId>scaletablayout</artifactId>
    <version>1.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.iwgang/scaletablayout/
implementation 'com.github.iwgang:scaletablayout:1.2'
// https://jarcasting.com/artifacts/com.github.iwgang/scaletablayout/
implementation ("com.github.iwgang:scaletablayout:1.2")
'com.github.iwgang:scaletablayout:aar:1.2'
<dependency org="com.github.iwgang" name="scaletablayout" rev="1.2">
  <artifact name="scaletablayout" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.iwgang', module='scaletablayout', version='1.2')
)
libraryDependencies += "com.github.iwgang" % "scaletablayout" % "1.2"
[com.github.iwgang/scaletablayout "1.2"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 27.1.1
org.jetbrains.kotlin : kotlin-stdlib-jre7 jar 1.2.61

Project Modules

There are no modules declared in this project.

Android Arsenal @iwgang

screenshot

gradle

implementation 'com.github.iwgang:scaletablayout:1.2'

use

    <cn.iwgang.scaletablayout.ScaleTabLayout
        android:id="@+id/cv_scaleTabLayout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#FFFFFF"
        android:paddingBottom="10dp"
        android:paddingTop="10dp"
        app:stl_selTextColor="#3f894a"
        app:stl_selTextSize="22sp"
        app:stl_tabSpacing="22dp"
        app:stl_unSelTextColor="#999999"
        app:stl_unSelTextSize="16sp"/>
        
    scaleTabLayout.setViewPager(viewPager)

    scaleTabLayout.addTab(index: Int, tag: String, isSelect: Boolean)

    scaleTabLayout.removeTab(index: Int)

    scaleTabLayout.getTabTextView(index: Int): TextView

    scaleTabLayout.setCurrentItem(index: Int)

    scaleTabLayout.setOnTabClickListener(listener: OnTabClickListener)

attributes

attr type default
stl_unSelTextSize reference 16sp
stl_selTextSize reference 20sp
stl_unSelTextColor color gray
stl_selTextColor color black
stl_tabSpacing dimension 20dp
stl_leftMargin dimension 15dp
stl_rightMargin dimension 15dp
stl_isSelTextBold boolean true

Versions

Version
1.2
1.1
1.0