Esempio n. 1
0
        protected virtual void DrawerSetup(DrawerLayout drawer)
        {
            if (drawer == null)
            {
                return;
            }

            var drawerToggle = new ActionBarDrawerToggle(
                /*activity:*/ this,
                /*drawerLayout:*/ drawer,
                /*toolbar: */ Toolbar,
                OpenDrawerContentDescRes,
                CloseDrawerContentDescRes);

            drawer.AddDrawerListener(drawerToggle);
            drawer.OnDrawerOpened().Subscribe(OnDrawerOpened).ToBeDisposedBy(this);

            drawerToggle.SyncState();
            drawerToggle.ToBeDisposedBy(this);
        }