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

点击条目上的按钮,右侧菜单怎样可以自动侧滑出来 #31

Open
hxkdidi opened this issue Jan 30, 2018 · 7 comments
Open

Comments

@hxkdidi
Copy link

hxkdidi commented Jan 30, 2018

No description provided.

@scsfwgy
Copy link

scsfwgy commented Aug 22, 2019

+1,有这样的需求。点击某个按钮侧滑栏自动弹出来,而不是侧滑出来。
@githubzaibao

@YangDDong
Copy link

+1 你们用什么办法解决了?

@scsfwgy
Copy link

scsfwgy commented Sep 2, 2019

image

@scsfwgy
Copy link

scsfwgy commented Sep 2, 2019

val stateCache = EasySwipeMenuLayout.getStateCache() if (stateCache == State.RIGHTOPEN) { continerView.handlerSwipeMenu(State.CLOSE) } else { continerView.handlerSwipeMenu(State.RIGHTOPEN) }

@Yange820
Copy link

Yange820 commented Sep 4, 2019

val stateCache = EasySwipeMenuLayout.getStateCache() if (stateCache == State.RIGHTOPEN) { continerView.handlerSwipeMenu(State.CLOSE) } else { continerView.handlerSwipeMenu(State.RIGHTOPEN) }

直接调用handlerSwipeMenu会报空指针 ,mLeftView找不到

@scsfwgy
Copy link

scsfwgy commented Sep 5, 2019

要给你的侧滑组件设置对应的id的,比如向左滑动,要设置右边滑动容器的id,按照作者文档上面的设置方式。我这边这么处理没问题

@24suixinsuoyu
Copy link

val stateCache = EasySwipeMenuLayout.getStateCache() if (stateCache == State.RIGHTOPEN) { continerView.handlerSwipeMenu(State.CLOSE) } else { continerView.handlerSwipeMenu(State.RIGHTOPEN) }

直接调用handlerSwipeMenu会报空指针 ,mLeftView找不到

遇到了同样的问题,请问解决了吗

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

5 participants