SpaceTabLayout icon indicating copy to clipboard operation
SpaceTabLayout copied to clipboard

How to check if tab is visible

Open bryan-ibrahim opened this issue 7 years ago • 2 comments

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?

bryan-ibrahim avatar Dec 11 '17 07:12 bryan-ibrahim

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

long1eu avatar Dec 11 '17 09:12 long1eu

   @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);

        //When fragment is show to user
 
    }

ModirGithub avatar Jul 03 '18 02:07 ModirGithub