Esempio n. 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Inflate our UI from its XML layout description
            SetContentView(Resource.Layout.main);

            PaintingView glp = FindViewById <PaintingView> (Resource.Id.paintingview);

            // Find the views whose visibility will change
            mMenuContainer        = FindViewById(Resource.Id.hidecontainer);
            mSwitchTexture        = FindViewById(Resource.Id.switch_texture);
            mSwitchTexture.Click += delegate { glp.SwitchTexture(); };

            // Find our buttons
            Button showButton = FindViewById <Button>(Resource.Id.show);
            Button hideButton = FindViewById <Button> (Resource.Id.hide);

            // Wire each button to a click listener
            showButton.Click += delegate { SetVisibility(ViewStates.Visible); };
            hideButton.Click += delegate { SetVisibility(ViewStates.Gone); };
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            SetContentView (Resource.Layout.main);

            _glp = FindViewById<PaintingView> (Resource.Id.paintingview);
        }