示例#1
0
        public override bool OnPrepareOptionsMenu(IMenu menu)
        {
            IMenuItem addItem = menu.FindItem(Resource.Id.favourites_add_item);

            addItem.SetVisible(!IsFavourited);

            IMenuItem removeItem = menu.FindItem(Resource.Id.favourites_remove_item);

            removeItem.SetVisible(IsFavourited);

            return(true);
        }
        public override bool OnPrepareOptionsMenu(IMenu menu)
        {
            IMenuItem addItem = menu.FindItem(Resource.Id.favourites_add_item);
            addItem.SetVisible(!IsFavourited);

            IMenuItem removeItem = menu.FindItem(Resource.Id.favourites_remove_item);
            removeItem.SetVisible(IsFavourited);

            return true;
        }
 public override bool OnPrepareOptionsMenu(IMenu menu)
 {
     refreshItem = menu.FindItem(Resource.Id.refresh);
     loadingView = (ImageView) refreshItem.ActionView;
     return true;
 }
 public override bool OnPrepareOptionsMenu(IMenu menu)
 {
     refreshItem = menu.FindItem(Resource.Id.refresh);
     loadingView = (ImageView)refreshItem.ActionView;
     return(true);
 }