一些杂乱的Android笔记

直接隐藏菜单某个项目(如果是结果页,则隐藏):

menu.findItem(SHARE_ID).setVisible(lastResult == null);

隐藏按钮:

    View shopperButton = activity.findViewById(R.id.shopper_button);

    shopperButton.setVisibility(View.GONE);
posted on 2011-10-18 22:55  Candyroot  阅读(126)  评论(0编辑  收藏  举报