long1eu / SpaceTabLayout

Not actively maintained, but PR are welcomed
1.6k stars 265 forks source link

How to check if tab is visible #26

Open bryan-ibrahim opened 6 years ago

bryan-ibrahim commented 6 years ago

I have animation in all the 3 tabs, but it only animates in the first tab. Is there a way I can know which tab the user is currently viewing, and begin the animation when they swipe to it?

long1eu commented 6 years ago

Hi! I'm not curently active on this. But you can create a pull request if you want.

ModirGithub commented 6 years ago
   @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);

        //When fragment is show to user

    }