DslTabLayout

: Hearts: Android’s most versatile TabLayout(not just TabLayout). High – energy self – painting control, inherit from ViewGroup, non – combination control.

features

  1. Any type is supportedchildThe view.
  2. Support for any typeDrawabletheindicator.
  3. Support intelligent startHorizontal scroll.
  4. Support intelligent startBisecting item width(1.5.4After).
  5. supportHigh convex modelAllow a certainchildOne section higher is shown.
  6. supportSliding selection mode, smart selection when slidingOn aorThe next.
  7. supportAngle of theConfiguration.
  8. supportViewPagerandViewPager2
  9. supportThe vertical(2.0.0After)

Directly as a horizontal LinearLayout can be used, no special requirements.

Introduction to use

Click to view all properties

Click to view event callbacks

Click to view the use of corner markers

Associated ViewPager use (compatible with ViewPager2)

The effect

aDSLTabLayoutThe following three effects can be achieved

High – energy self – painting control, inherit from ViewGroup, non – combination control.

No need to choose, XML configuration is ok, why not accept it?

With scroll effect and corner markers
Normal and high convex effects
With border, splitter and slide selection effects

Effect of the vertical

useJitPackThe way into the library.

In the rootbuild.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io'}}}Copy the code

In the APP directorybuild.gradle

dependencies {
    implementation 'com. Making. Angcyo. DslTablayout: TabLayout: 2.0.0'

    / / is optional
    implementation 'com. Making. Angcyo. DslTablayout: ViewPager1Delegate: 2.0.0'
    / / is optional
    implementation 'com. Making. Angcyo. DslTablayout: ViewPager2Delegate: 2.0.0'
}
Copy the code

Update log

Download experience

Sweep code installed


Group withQun of Pian Species NI And JIN typesBig guy, waiting for you to flirt.

Contact the author

Click on this QQ dialogue damned blank click on this fast group

Open source address