Skip to content

MohtashamVahid/SmartButtonTab

Repository files navigation

SmartButtonTab

Hi guys Smart Botton Tab Is Library for manage Group Button in Android This Example Create With RxJava And You Can Remove This

Add Library

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

dependencies {
	        implementation 'com.github.mohtasham1988:SmartButtonTab:v1.0'
	}
  

How to use

Simple Java Code

        ButtonTab
                .Builder(findViewById(R.id.container))
                .addTab(ButtonModel("Tab 1", 3))
                .addTab(ButtonModel("Default Tab", 0))
                .addTab(ButtonModel("Tab 2", 2))

                .setSelectedId(0)
                .setListener(object : ButtonTab.ButtonTabListener {
                    override fun onClickButton(button: ButtonModel) {
                    }

                }).build()