gpt4 book ai didi

android - 从android中应用程序的任何 Activity 打开抽屉

转载 作者:行者123 更新时间:2023-11-30 00:30:12 25 4
gpt4 key购买 nike

我的应用程序中有滑动菜单,我想从任何 Activity 中打开抽屉。谁能帮帮我。我可以打开滑动菜单 b

Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1493) at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1511) at android.support.v4.app.FragmentManagerImpl.popBackStack(FragmentManager.java:591) at com.videobankdigital.vmr3.MainActivity_.getBottomFragment(MainActivity_.java:335) at com.videobankdigital.vmr3.MainActivity_.switchContent(MainActivity_.java:97) at com.videobankdigital.vmr3.SlidingPanelHelper.LeftSliderMenuFragment$1.onItemClick(LeftSliderMenuFragment.java:125) at android.widget.AdapterView.performItemClick(AdapterView.java:313) at android.widget.AbsListView.performItemClick(AbsListView.java:1163) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3112) at android.widget.AbsListView.onTouchUp(AbsListView.java:3913) at android.widget.AbsListView.onTouchEvent(AbsListView.java:3685) at android.view.View.dispatchTouchEvent(View.java:8725) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2594) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2305) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2606) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2320) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2545) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1745) at android.app.Activity.dispatchTouchEvent(Activity.java:2834) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2506) at android.view.View.dispatchPointerEvent(View.java:8915) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4098) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3961) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3523) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3576) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3542) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3652) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3550) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3709) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3523) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3576) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3542) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3550) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3523) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5795) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5769) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5740) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5885) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(Native Method)

我用过https://github.com/jfeinstein10/SlidingMenu这个

最佳答案

在一个基本 Activity 中使用此滑动菜单,并在您需要此滑动菜单的任何其他 Activity 中扩展此 Activity

关于android - 从android中应用程序的任何 Activity 打开抽屉,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44565337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com