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; }
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; }