﻿
using Android.Content;
using Android.Views;
using Android.Widget;

namespace Calculator.Droid
{
	public class ButtonAdapter : BaseAdapter
	{
		Context context;

		string[] buttons = new string[] {
			"<-", "C", "±", "/",
			"7", "8", "9", "*",
			"4", "5", "6", "-",
			"1", "2", "3", "+",
			"0", ".", null, "="
		};

		public ButtonAdapter (Context context)
		{
			this.context = context;
		}

		public override Java.Lang.Object GetItem (int position)
		{
			return null;
		}

		public override long GetItemId (int position)
		{
			return 0;
		}

		public override View GetView (int position, View convertView, ViewGroup parent)
		{
			Button button = null;
			string text = buttons [position];

			if (convertView != null) {
				button = (Button)convertView;
			} else {
				button = new Button (context);
			}

			if (text != null) {
				button.Text = text;
			} else {
				button.Visibility = ViewStates.Invisible;
			}
			return button;
		}

		public override int Count {
			get { return buttons.Length; }
		}
	}
}


﻿
using Android.Content;
using Android.Views;
using Android.Widget;

namespace Calculator.Droid
{
	public class ButtonAdapter : BaseAdapter
	{
		Context context;

		string[] buttons = new string[] {
			"←", "C", "±", "/",
			"7", "8", "9", "*",
			"4", "5", "6", "-",
			"1", "2", "3", "+",
			"0", ".", null, "="
		};

		public ButtonAdapter (Context context)
		{
			this.context = context;
		}

		public override Java.Lang.Object GetItem (int position)
		{
			return null;
		}

		public override long GetItemId (int position)
		{
			return 0;
		}

		public override View GetView (int position, View convertView, ViewGroup parent)
		{
			Button button = null;
			string text = buttons [position];

			if (convertView != null) {
				button = (Button)convertView;
			} else {
				button = new Button (context);
			}

			if (text != null) {
				button.Text = text;
			} else {
				button.Visibility = ViewStates.Invisible;
			}
			return button;
		}

		public override int Count {
			get { return buttons.Length; }
		}
	}
}


Use single arrow character for backspace.
Use single arrow character for backspace.

Previously it was two characters "<-"
