<commit_before>using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Eto.Forms;

namespace Eto.Test.Android
{
	[Activity(Label = "Eto.Test.Android", MainLauncher = true)]
	public class MainActivity : Activity
	{

		public class SimpleApplication : Forms.Application
		{
			public SimpleApplication(Generator generator = null)
				: base(generator)
			{
			}
			public override void OnInitialized(EventArgs e)
			{
				base.OnInitialized(e);
				MainForm = new Form { Content = new Label { Text = "Hello world", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Center } };
				MainForm.Show();
			}
		}

		protected override void OnCreate(Bundle bundle)
		{
			base.OnCreate(bundle);

			var generator = new Eto.Platform.Android.Generator();
			//new TestApplication(generator).Attach(this);
			new SimpleApplication(generator).Attach(this).Run();

			// 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++);
			};*/
		}
	}
}

<commit_msg>Android: Use dynamic layout for simple app<commit_after>using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Eto.Forms;

namespace Eto.Test.Android
{
	[Activity(Label = "Eto.Test.Android", MainLauncher = true)]
	public class MainActivity : Activity
	{
		public class SimpleApplication : Forms.Application
		{
			public SimpleApplication(Generator generator = null)
				: base(generator)
			{
			}

			public override void OnInitialized(EventArgs e)
			{
				base.OnInitialized(e);
				var layout = new DynamicLayout();
				layout.Add(new Label { Text = "Hello world", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Center });
				layout.Add(new Label { Text = "<NAME>", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Center });

				MainForm = new Form { Content = layout };
				MainForm.Show();
			}
		}

		protected override void OnCreate(Bundle bundle)
		{
			base.OnCreate(bundle);

			var generator = new Eto.Platform.Android.Generator();
			//new TestApplication(generator).Attach(this);
			new SimpleApplication(generator).Attach(this).Run();
		}
	}
}


{'fraction_non_alphanumeric': 0.11466982997232107, 'fraction_numerical': 0.00039541320680110717, 'mean_word_length': 3.9510763209393347, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6338058', 'n_tokens_mistral': 853, 'n_tokens_neox': 720, 'n_words': 188}