-
Notifications
You must be signed in to change notification settings - Fork 184
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
Viewpageer behavior wrong when set state is STATE_HIDDEN #45
Comments
Error 403 |
I confirm. When behavior initialized as STATE_HIDDEN in onCreate() something wrong. |
When view hide, actually view is gone. ScrollAwareFABBehavior.onDependentViewChanged() if ((child.getY() + DyFix) > collapsedY) |
I can confirm the above fix works. Thanks @leeyc09 |
I want to hide bottom sheet when activity create, so I set state as STATE_HIDDEN in onCreate() function
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinatorlayout);
View bottomSheet = coordinatorLayout.findViewById(R.id.bottom_sheet);
behavior = BottomSheetBehaviorGoogleMapsLike.from(bottomSheet);
behavior.setState(BottomSheetBehaviorGoogleMapsLike.STATE_HIDDEN);
But I got the this issue. Check out image : https://goo.gl/M8bKpk
When I set state as STATE_COLLAPSED onCreate() funtion, it works fine.
The text was updated successfully, but these errors were encountered: