Android Reside menu item disable or Hide?
Android Reside menu item disable or Hide?
Problem:
I am not able to disable ResideMenu
item. How should I approach this problem?
ResideMenu
Code:
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);
...
}
}
How to remove or disable this menu item when user navigates to next Fragment
or add a new menu item?
Fragment
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.