I have some problem with saving the text from an EditText.
Here is the code:
String lista;
EditText bevasarlolista = null;
bevasarlolista = view.FindViewById<EditText>(Resource.Id.bevasarlo);
if (items[position] == "Bevásárlólista")
{
Button mentes = view.FindViewById<Button>(Resource.Id.hozzaad);
bevasarlolista.Text = lista;
mentes.Click += bevasarlolistaMentese;
}
private void bevasarlolistaMentese(object sender, EventArgs e)
{
lista = bevasarlolista.Text;
Toast.MakeText(Application.Context, bevasarlolista.Text, ToastLength.Long).Show();
}
So the problem is that when I write something in that editText, and than press the 'mentes' button the toast text appears, but its empty, meaning that my editText is empty too and i don't know how sould i save the editText.text
Thanks for the help!