Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var btnDog = FindViewById<Button>(Resource.Id.btnDog);
            var btnCat = FindViewById<Button>(Resource.Id.btnCat);
            animate = FindViewById<AnimationView>(Resource.Id.imgAnimate);
            btnDog.Click += delegate
            {
                AnimateAnimal(true);
            };
            btnCat.Click += delegate
            {
                AnimateAnimal();
            };
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var btnDog = FindViewById <Button>(Resource.Id.btnDog);
            var btnCat = FindViewById <Button>(Resource.Id.btnCat);

            animate       = FindViewById <AnimationView>(Resource.Id.imgAnimate);
            btnDog.Click += delegate
            {
                AnimateAnimal(true);
            };
            btnCat.Click += delegate
            {
                AnimateAnimal();
            };
        }