Skip to content

Instantly share code, notes, and snippets.

View lieuwex's full-sized avatar
🆒

Lieuwe Rooijakkers lieuwex

🆒
View GitHub Profile
# coding: utf-8
#
# Copyright (c) 2015 by Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> (http://www.lieuwex.me/)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
private const int DIALOG_LOGIN = 1;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
this.SetContentView(R.Layouts.activity_android_dialog);
var launchButton = FindViewById<Button>(R.Ids.btn_launch);
launchButton.Click += delegate { ShowDialog(DIALOG_LOGIN); };
}