直接开代码!
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace androidTest
{
[Activity (Label = "androidTest", MainLauncher = true)]
public class MainActivity : Activity
{
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 button = FindViewById<Button> (Resource.Id.myButton);
button.Click += delegate {
System.Console.WriteLine("hello"); // 多么标准的一句C#代码
Java.Lang.JavaSystem.Out.Println("word"); // 多么“标准”的一句JAVA代码!
};
}
}
}
来张结果图片从此以后不再相信爱情了!!!!个人觉得 这完全可以独立成为一门新语言!我先将他称为CJ#吧!!