Пример #1
0
            public bool OnActionItemClicked(ActionMode mode, IMenuItem item)
            {
                int id = item.ItemId;

                if (id == Resource.Id.action_delete)
                {
                    DeleteItems();
                    mode.Finish();
                    return(true);
                }

                if (id == Android.Resource.Id.Home)
                {
                    HomeActivity.GetInstance()?.SetService();

                    MAdapter.ClearSelections();


                    ActionMode.Finish();

                    return(true);
                }

                return(false);
            }
Пример #2
0
            public bool OnActionItemClicked(ActionMode mode, IMenuItem item)
            {
                int id = item.ItemId;

                //if (id == Resource.Id.action_delete)
                //{
                //    DeleteItems();
                //    mode.Finish();
                //    return true;
                //}
                //else
                if (id == Resource.Id.action_copy)
                {
                    CopyItems();
                    mode.Finish();
                    return(true);
                }
                else if (id == Android.Resource.Id.Home)
                {
                    if (Timer != null)
                    {
                        Timer.Enabled = true;
                        Timer.Start();
                    }

                    MAdapter.ClearSelections();

                    TopChatToolBar.Visibility = ViewStates.Visible;
                    ActionMode.Finish();

                    return(true);
                }
                return(false);
            }
Пример #3
0
            public void OnDestroyActionMode(ActionMode mode)
            {
                try
                {
                    MAdapter.ClearSelections();
                    ActionMode = null;
                    SetSystemBarColor(Activity, AppSettings.MainColor);

                    HomeActivity.GetInstance()?.SetService();

                    ToolBar.Visibility = ViewStates.Visible;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }
Пример #4
0
            public void OnDestroyActionMode(ActionMode mode)
            {
                try
                {
                    MAdapter.ClearSelections();
                    ActionMode = null;
                    SetSystemBarColor(Activity, AppSettings.MainColor);

                    if (Timer != null)
                    {
                        Timer.Enabled = true;
                        Timer.Start();
                    }

                    TopChatToolBar.Visibility = ViewStates.Visible;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }