コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            // Get our button from the layout resource,
            // and attach an event to it
            button = FindViewById <Button> (Resource.Id.myButton);
            TextView textView = FindViewById <TextView> (Resource.Id.myTextView);

            textView.MovementMethod = new Android.Text.Method.ScrollingMovementMethod();
            ControlWriter cw = new ControlWriter(this, textView);

            Console.SetError(cw);
            Console.SetOut(cw);

            button.Click += button_click;
        }
コード例 #2
0
ファイル: MainActivity.cs プロジェクト: hyo2012/VitaDefiler
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

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

            // Get our button from the layout resource,
            // and attach an event to it
            button = FindViewById<Button> (Resource.Id.myButton);
            TextView textView = FindViewById<TextView> (Resource.Id.myTextView);
            textView.MovementMethod = new Android.Text.Method.ScrollingMovementMethod();
            ControlWriter cw = new ControlWriter(this,textView);
            Console.SetError(cw);
            Console.SetOut(cw);

            button.Click += button_click;
        }