我想制作一个待办事项列表应用程序(Android,C#),但我想知道如果你触摸按钮我可以如何制作一个复选框。我什么都没试过,因为我不知道!我3天前开始 这是代码:
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace TaskList
{
[Activity (Label = "TO-DO", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
SetContentView (Resource.Layout.Main);
Button create = FindViewById<Button> (Resource.Id.create);
create.Click += delegate {
//Code
}
};
}
}
}