protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); SetContentView(Resource.Layout.activity_main); toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); FloatingActionButton fab = FindViewById <FloatingActionButton>(Resource.Id.fab); fab.Click += FabOnClick; //DrawerLayout drawer = FindViewById<DrawerLayout>(Resource.Id.drawer_layout); //ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, Resource.String.navigation_drawer_open, Resource.String.navigation_drawer_close); //drawer.AddDrawerListener(toggle); //toggle.SyncState(); NavigationView navigationView = FindViewById <NavigationView>(Resource.Id.nav_view); navigationView.SetNavigationItemSelectedListener(this); worksList = SQLiteDb.GetWorks(); mainListView = FindViewById <ListView>(Resource.Id.mainListView); mainListView.SetSelection(0); mainListView.ItemClick += MainListView_ItemClick; mainListView.ItemLongClick += MainListView_ItemLongClick; UpdateAdapter(); SQLiteDb.StartApp(this); // starting load words to library }