Devlight / Devlight/NavigationTabStrip

Do a logic when tab is clicked (before switch to new tab)

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

I want to do a logic before changing tabs.
In fact, when tab(1) is clicked, logic(1) will be performed.
if logic(1) returns true, tab(2) will be opened, otherwise tab(1) will remain open.

```onPageSelected(position)``` method of ```setOnPageChangeListener``` interface returns new tab position, while I want to do my logic before starting to switch the tabs.

how do I have to do that?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.