问题:
我无法禁用ResideMenu
项目。我应该如何解决这个问题?
代码:
public class MainActivity extends AppCompatActivity{
private ResideMenu resideMenu;
private ResideMenuItem itemLogout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
resideMenu=new ResideMenu(this);
resideMenu.setBackground(R.drawable.background_img_jpeg);
resideMenu.attachToActivity(this);
resideMenu.setMenuListener(menuListener);
resideMenu.setScaleValue(0.6f);
//adding the item in reside menu
itemLogout=new ResideMenuItem(this,R.drawable.icon_logout,"Logout");
resideMenu.addMenuItem(itemLogout,ResideMenu.DIRECTION_LEFT);
...
}
}
当用户导航到下一个Fragment
或添加新菜单项时,如何删除或禁用此菜单项?