一些杂乱的Android笔记
直接隐藏菜单某个项目(如果是结果页,则隐藏):
menu.findItem(SHARE_ID).setVisible(lastResult == null);
隐藏按钮:
View shopperButton = activity.findViewById(R.id.shopper_button);
shopperButton.setVisibility(View.GONE);
直接隐藏菜单某个项目(如果是结果页,则隐藏):
menu.findItem(SHARE_ID).setVisible(lastResult == null);
隐藏按钮:
View shopperButton = activity.findViewById(R.id.shopper_button);