Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ATHBK committed Jul 23, 2018
2 parents fb4a709 + a5b9dd0 commit e385c08
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Add this to your module's `build.gradle` file:

```gradle
dependencies {
compile 'com.github.ATHBK:UltimateTabLayout:1.2.5'
compile 'com.github.ATHBK:UltimateTabLayout:1.2.6'
}
```

Expand Down Expand Up @@ -121,7 +121,17 @@ How to use in .
```java
adapter = new FragmentAdapterDemo(getSupportFragmentManager());
viewPager.setAdapter(adapter);
tabLayout.setViewPager(viewPager, adapter);

//options. if you override onClickTabListener.
tabLayout.setOnClickTabListener(new OnClickTabListener() {
@Override
public void onClickTab(int currentPos) {
Log.e("LOG", "OnClickTab " + currentPos);
viewPager.setCurrentItem(currentPos);
}
});

tabLayout.setViewPager(viewPager, adapter);
```

** Note: Adapter must implements IFTabAdapter
Expand Down

0 comments on commit e385c08

Please sign in to comment.