public override bool OnOptionsItemSelected(Android.Views.IMenuItem item)
        {
            if (item.ItemId == Android.Resource.Id.Home && !_slidingLayout.IsOpen)
            {
                _slidingLayout.SmoothSlideOpen();
                return(true);
            }

            return(base.OnOptionsItemSelected(item));
        }
Ejemplo n.º 2
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (Resources.GetResourceEntryName(item.ItemId))
            {
            case "actionbar_refresh":
                RefreshClick(api);
                return(true);

            case "home":
                if (!_slidingLayout.IsOpen)
                {
                    _slidingLayout.SmoothSlideOpen();
                }
                return(true);
            }

            return(base.OnOptionsItemSelected(item));
        }