From 86a2820e40cc00f227d56dca74ee14129a51d29e Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 30 Dec 2023 00:19:37 +0300 Subject: [PATCH] added contradicting dots indicator type --- README.md | 9 +++-- .../dotstablayoutexample/MainActivity.kt | 7 +++- app/src/main/res/layout/activity_main.xml | 17 +++++++--- dots-tab-layout/build.gradle.kts | 4 ++- .../dotstablayout/IndicatorDrawerType.kt | 4 +++ .../ContractingDotIndicator.kt | 31 ++++++++++++++++++ dots-tab-layout/src/main/res/values/attrs.xml | 1 + images/contractingDotIndicator.gif | Bin 0 -> 23524 bytes 8 files changed, 65 insertions(+), 8 deletions(-) create mode 100644 dots-tab-layout/src/main/java/host/capitalquiz/dotstablayout/indicatordrawer/ContractingDotIndicator.kt create mode 100644 images/contractingDotIndicator.gif diff --git a/README.md b/README.md index 579ccca..f6f9944 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ allprojects { ``` dependencies { - implementation 'com.github.ByBus:dots-tab-layout:0.8.0' + implementation 'com.github.ByBus:dots-tab-layout:0.9.0' } ``` @@ -30,7 +30,7 @@ dependencies { #### 1. Add DotsTabLayout view to your layout ``` (R.id.pager) pager.adapter = FragmentAdapter(supportFragmentManager, lifecycle) - val dotsLayout = findViewById(R.id.tab_layout_dots) + val dotsLayout = findViewById(R.id.dotstab_layout) dotsLayout.attachTo(pager, this) + + findViewById