MonoDroid Preview
Posted by: K. Scott Allen,
on 11 Jan 2011 |
View original | Bookmarked: 0 time(s)
MonoDroid allows you to write Android applications using C# and Visual Studio. Compare the code in the last post to the following: [Activity(Label = "My Activity", MainLauncher = true)]
public class Activity1 : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.layout.main);
Button button = FindViewById<Button>(Resource.id.button);
TextView view = FindViewById<TextView>(Resource.id.text);
...