Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

现在版本的onDependentViewChanged以及之后的几个重要方法都改动了 #1

Open
amberkira opened this issue Apr 19, 2017 · 0 comments

Comments

@amberkira
Copy link

    @Override
    public boolean onDependentViewChanged(CoordinatorLayout parent, FloatingActionButton child,
            View dependency) {
        if (dependency instanceof AppBarLayout) {
            // If we're depending on an AppBarLayout we will show/hide it automatically
            // if the FAB is anchored to the AppBarLayout
            updateFabVisibilityForAppBarLayout(parent, (AppBarLayout) dependency, child);
        } else if (isBottomSheet(dependency)) {
            updateFabVisibilityForBottomSheet(dependency, child);
        }
        return false;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant