We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
从顶部拉出界面,拉出来后,还能往下拉,我知道这是一种越界回弹的效果,能禁止这种效果吗? View topMenu = LayoutInflater.from(this).inflate(R.layout.drawer_top_layout, null); topMenu.setLayoutParams(layoutParams); SmartSwipeWrapper topMenuWrapper = SmartSwipe.wrap(topMenu).addConsumer(newSpaceConsumer()).enableTop().getWrapper();
DrawerConsumer mDrawerConsumer = new DrawerConsumer() .setTopDrawerView(topMenuWrapper) .setBottomDrawerView(bottomMenuWrapper) .setScrimColor(0x7F000000) .setShadowColor(0x80000000) .setEdgeSize(SmartSwipe.dp2px(100, this)) .as(DrawerConsumer.class);
SmartSwipe.wrap(this).addConsumer(mDrawerConsumer);
The text was updated successfully, but these errors were encountered:
把SmartSwipe.wrap(topMenu).addConsumer(newSpaceConsumer()).enableTop().getWrapper();这一句中的enableTop()取掉好像就可以
SmartSwipe.wrap(topMenu).addConsumer(newSpaceConsumer()).enableTop().getWrapper();
enableTop()
Sorry, something went wrong.
No branches or pull requests
从顶部拉出界面,拉出来后,还能往下拉,我知道这是一种越界回弹的效果,能禁止这种效果吗?
View topMenu = LayoutInflater.from(this).inflate(R.layout.drawer_top_layout, null);
topMenu.setLayoutParams(layoutParams);
SmartSwipeWrapper topMenuWrapper = SmartSwipe.wrap(topMenu).addConsumer(newSpaceConsumer()).enableTop().getWrapper();
DrawerConsumer mDrawerConsumer = new DrawerConsumer()
.setTopDrawerView(topMenuWrapper)
.setBottomDrawerView(bottomMenuWrapper)
.setScrimColor(0x7F000000)
.setShadowColor(0x80000000)
.setEdgeSize(SmartSwipe.dp2px(100, this))
.as(DrawerConsumer.class);
SmartSwipe.wrap(this).addConsumer(mDrawerConsumer);
The text was updated successfully, but these errors were encountered: