我正在使用ActionBarSherlock库和用于Black Ops 2指南应用程序的滑动菜单库,并尝试在滑动菜单的同一活动中插入美丽的"叠加"功能.结果是:
这是代码:
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
super.onCreate(savedInstanceState);
setContentView(R.layout.c_m_pyrrhicvictory);
Resources res = getResources();
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setShadowWidthRes(R.dimen.shadow_width);
menu.setShadowDrawable(R.drawable.shadow);
menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
menu.setFadeDegree(0.35f);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setMenu(R.layout.main_slidingmenu);
getActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setBackgroundDrawable(getResources().
getDrawable(R.drawable.ab_bg_black));
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setSubtitle("1/10 Standard");
getSupportActionBar().setTitle("Missions");
Run Code Online (Sandbox Code Playgroud)
截图: 主要活动 SlidingMenu
Android Studio在int数组的length()方法中引发了此错误以获取其长度.怎么解决?
