mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-08-13 17:03:49 -04:00
169994eb06
Created preliminary app for ancient icons
32 lines
727 B
C#
32 lines
727 B
C#
using System;
|
|
using Android.App;
|
|
using Android.Content;
|
|
using Android.Runtime;
|
|
using Android.Views;
|
|
using Android.Widget;
|
|
using Android.OS;
|
|
|
|
namespace AncientIconSet
|
|
{
|
|
[Activity(Label = "AncientIconSet", MainLauncher = true, Icon = "@drawable/icon")]
|
|
public class MainActivity : Activity
|
|
{
|
|
int count = 1;
|
|
|
|
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 { button.Text = string.Format("{0} clicks!", count++); };
|
|
}
|
|
}
|
|
}
|
|
|