public override bool OnCreateOptionsMenu(IMenu menu)
        {
            int group = 0;

            IMenuItem item1 = menu.Add(group, SWAP_MENU, SWAP_MENU, "Swap");

            item1.SetShowAsAction((int)ShowAsAction.Never | (int)ShowAsAction.WithText);

            IMenuItem item2 = menu.Add(group, RESET_MENU, RESET_MENU, "Reset Library");

            item2.SetShowAsAction((int)ShowAsAction.Never | (int)ShowAsAction.WithText);

            //IMenuItem item3 = menu.Add(group, SETTINGS_MENU, SETTINGS_MENU, "Settings");
            //item3.SetShowAsAction((int)ShowAsAction.Never | (int)ShowAsAction.WithText);

            return(base.OnCreateOptionsMenu(menu));
        }
        public override bool OnCreateOptionsMenu(IMenu menu)
        {
            int group = 0;

            IMenuItem item = menu.Add(group, SYNC_MENU, SYNC_MENU, "Sync");
            item.SetIcon(Android.Resource.Drawable.IcMenuRotate);
            item.SetShowAsAction((int)ShowAsAction.IfRoom);

            SupportMenuInflater.Inflate(Resource.Menu.search_options_menu, menu);

            var searchManager = (SearchManager)GetSystemService(Context.SearchService);
            var search = (SearchView)menu.FindItem(Resource.Id.search).ActionView;
            var searchableInfo = searchManager.GetSearchableInfo(ComponentName);

            search.QueryHint = "Search Notes";
            search.SetIconifiedByDefault(true);
            search.QueryTextChange += (sender, e) =>
                {

                    //string val = search.Query.ToString();

                    //Dictionary<string, int> dict = new Dictionary<string, int>();
                    //foreach (var n in notesList)
                    //{
                    //    var all = n.NoteBody + " " + n.NoteTitle + " " + n.Scripture + " " + n.Title;
                    //    dict.Add(all, n.Id);
                    //}

                    //List<int> ids = new List<int>();
                    //foreach (var pair in dict)
                    //{
                    //    string value = pair.Value.ToString();

                    //    if (value.IndexOf(val, StringComparison.CurrentCultureIgnoreCase) != -1)
                    //    {
                    //        ids.Add(int.Parse(pair.Key));
                    //    }
                    //}

                    //FillDataWhileSearching(ids.ToArray());
                    //FillDataWhileSearching(search.Query.ToString());

                    if (notesAdapter != null)
                    {
                        Console.WriteLine(search.Query);
                        notesAdapter.Filter.InvokeFilter(search.Query);
                        ListAdapter = notesAdapter;
                    }
                };

            return base.OnCreateOptionsMenu(menu);
        }
        public override bool OnCreateOptionsMenu(IMenu menu)
        {
            if (ThisApp.ReaderKind == ReaderKind.BibleReader)
            {
                var noteMenu = menu.Add(0, NOTE_MENU, NOTE_MENU, "Note");
                noteMenu.SetShowAsAction(1);
                noteMenu.SetIcon(Android.Resource.Drawable.IcMenuAdd);

                var translateMenu = menu.Add(0, TRANSLATE_MENU, TRANSLATE_MENU, "Translate");
                translateMenu.SetShowAsAction(1);
                translateMenu.SetIcon(Android.Resource.Drawable.IcMenuRotate);
            }

            if (ThisApp.ReaderKind == ReaderKind.PublicationReader)
            {
                //var noteMenu = menu.Add(0, NOTE_MENU, NOTE_MENU, "Note");
                //noteMenu.SetShowAsAction(1);
                //noteMenu.SetIcon(Android.Resource.Drawable.IcMenuAdd);

                var translateMenu = menu.Add(0, TRANSLATE_MENU, TRANSLATE_MENU, "Translate");
                translateMenu.SetShowAsAction(1);
                translateMenu.SetIcon(Android.Resource.Drawable.IcMenuRotate);
            }

            return base.OnCreateOptionsMenu(menu);
        }
        //public override bool DispatchTouchEvent(MotionEvent ev)
        //{
        //    base.DispatchTouchEvent(ev);
        //    return gestureDetector.OnTouchEvent(ev);
        //}
        public override bool OnCreateOptionsMenu(IMenu menu)
        {
            var actionitem1 = menu.Add(0, 6, 6, "Previous");
            actionitem1.SetShowAsAction(1);
            actionitem1.SetIcon(Android.Resource.Drawable.IcMediaRew);

            var actionitem2 = menu.Add(0, 7, 7, "Next");
            actionitem2.SetShowAsAction(1);
            actionitem2.SetIcon(Android.Resource.Drawable.IcMediaFf);

            if (ThisApp.ReaderKind == ReaderKind.BibleReader)
            {
                var actionitem3 = menu.Add(0, 8, 8, "Note");
                actionitem3.SetShowAsAction(1);
                actionitem3.SetIcon(Android.Resource.Drawable.IcMenuAdd);
            }

            if (ThisApp.ReaderKind == ReaderKind.DailyTextReader)
            {
                var actionitem4 = menu.Add(0, 9, 9, "Today");
                actionitem4.SetShowAsAction(1);
                actionitem4.SetIcon(Android.Resource.Drawable.IcMenuToday);
            }

            return base.OnCreateOptionsMenu(menu);
        }