protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			RequestWindowFeature(WindowFeatures.NoTitle);

			// Set our view from the "main" layout resource
			SetContentView(Resource.Layout.Main);
 
			mCloseButton = (Button) FindViewById( Resource.Id.button_close );
			mOpenButton = (Button) FindViewById( Resource.Id.button_open );
			mDrawer = (MultiDirectionSlidingDrawer) FindViewById( Resource.Id.drawer );

			mCloseButton.Click += (sender, e) => {
				mDrawer.animateClose();
			};

			mOpenButton.Click += (sender, e) => {
				if( !mDrawer.isOpened() )
					mDrawer.animateOpen();
			}; 
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            RequestWindowFeature(WindowFeatures.NoTitle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            mCloseButton = (Button)FindViewById(Resource.Id.button_close);
            mOpenButton  = (Button)FindViewById(Resource.Id.button_open);
            mDrawer      = (MultiDirectionSlidingDrawer)FindViewById(Resource.Id.drawer);

            mCloseButton.Click += (sender, e) => {
                mDrawer.animateClose();
            };

            mOpenButton.Click += (sender, e) => {
                if (!mDrawer.isOpened())
                {
                    mDrawer.animateOpen();
                }
            };
        }
Пример #3
0
 public DrawerToggler(MultiDirectionSlidingDrawer mds)
 {
     MDS = mds;
 }
Пример #4
0
 public SlidingHandler(MultiDirectionSlidingDrawer mds)
 {
     MDS = mds;
 }
			public DrawerToggler(MultiDirectionSlidingDrawer mds) {
				MDS = mds;
			}
			public SlidingHandler(MultiDirectionSlidingDrawer mds) {
				MDS = mds;
			}