Skip to content

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

Description

@BigGitWorld

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions