Open mypplication opened 11 years ago
I'm having the same problem while extending SlidingFragmentActivity (which calls attachToActivity via the helper). Any ideas on how to fix this?
Same here, seeing this issue. Were you guys able to resolve this? SlidingMenu.SLIDING_WINDOW
works for me on 4.3 but not SlidingMenu.SLIDING_CONTENT
Same issue here. Works for me on 4.3 (Nexus 7) SlidingMenu.SLIDING_WINDOW
but doesnt work SlidingMenu.SLIDING_CONTENT
Any ideas how to fix it?
I've the same issue but I'm creating the sliding menu as follow:
int widthMeasureSpec = MeasureSpec.makeMeasureSpec(ViewGroup.LayoutParams.WRAP_CONTENT, MeasureSpec.EXACTLY); int heightMeasureSpec = MeasureSpec.makeMeasureSpec(ViewGroup.LayoutParams.MATCH_PARENT, MeasureSpec.EXACTLY);
menu = getSlidingMenu(); menu.setMode(SlidingMenu.LEFT); menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setShadowDrawable(R.drawable.shadow_menu); menu.setShadowWidthRes(R.dimen.bg_shadow_width);
menu.setBehindScrollScale(0.0f); menu.setFadeDegree(0.35f);
menuHolderRelativeLayout = (RelativeLayout) findViewById(R.id.menu_RelativeLayout); menuHolderRelativeLayout.measure(widthMeasureSpec, heightMeasureSpec); menu.setBehindWidth(menuHolderRelativeLayout.getMeasuredWidth());
this is initiated in a FragmentActivity that extends (SlidingFragmentActivity extends SherlockFragmentActivity implements SlidingActivityBase) and also in a Activity that extends (SlidingActivity extends SherlockActivity implements SlidingActivityBase)
http://stackoverflow.com/questions/20121696/slidingmenu-bug-in-android-4-3
I've found my problem. In Android Build.VERSION_CODES.JELLY_BEAN_MR2 there's a problem with "MeasureSpec.EXACTLY", it must be "AT_MOST" instead.
There is a big bug if you use this.mSlidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); on Android 4.3. All the fragments added in the window will not be visible.