コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.activity2_view);
            this.Title = "Activity 2";

            FlyOutMenuHelper.drawerIni(this);
            FlyOutMenuHelper.m_DrawerToggle.SyncState();

            //actionbar home button
            this.SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            this.SupportActionBar.SetHomeButtonEnabled(true);
        }
コード例 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity1_view);
            this.Title = "Home";
            //Global.m_Title = Global.m_DrawerTitle = this.Title;

            FlyOutMenuHelper.drawerIni(this);
            FlyOutMenuHelper.m_DrawerToggle.SyncState();

            //actionbar home button
            this.SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            this.SupportActionBar.SetHomeButtonEnabled(true);
        }