//show a default dictionary. public Android.Views.View.IOnClickListener ShowLookup() { Fragment fragment = new LooupLocal(); FragmentManager.BeginTransaction().Replace(Resource.Id.flContent, fragment).Commit(); return(null); }
public bool OnNavigationItemSelected(IMenuItem item) { int id = item.ItemId; Fragment fragment = null; if (id == Resource.Id.menu_createdict) { fragment = new CreateDict(); } else if (id == Resource.Id.menu_lookup) { fragment = new LooupLocal(); } else if (id == Resource.Id.menu_dictlist) { fragment = new DictList(); } else if (id == Resource.Id.menu_opendicts) { fragment = new OpenDict(); } else if (id == Resource.Id.menu_tools) { fragment = new UtilityTools(); } else if (id == Resource.Id.nav_share) { } else if (id == Resource.Id.nav_send) { } if (fragment != null) { FragmentManager.BeginTransaction().Replace(Resource.Id.flContent, fragment).Commit(); } DrawerLayout drawer = (DrawerLayout)FindViewById(Resource.Id.drawer_layout); drawer.CloseDrawer(GravityCompat.Start); return(true); }