I have tried with setOnEditorActionListener but also a lot of errors that are
unclear to me as of why they come.
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Text;
using Android.Text.Method ;
using Android.Views.InputMethods;
namespace SiteZoeker
{
[Activity(Label = "SiteZoeker", MainLauncher = true, Icon =
"@drawable/icon")]
public class Activity1 : Activity
{
EditText mEdit;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
mEdit =
(EditText)FindViewById(Resource.Id.txtSitenummer);
mEdit.SetOnEditorActionListener(new
OnEditorActionListener()
{
@Override public boolean
onEditorAction(TextView v, int actionId, event
KeyEvent )
{
boolean handled = false;
if (actionId ==
EditorInfo.IME_ACTION_SEND)
{
// Send the user message
handled = true;
}
return handled;
}
});
}
}
}
The first error comes on the line @Override... MonoDevelop says it's missing
a ) but I copied the example from the page jheerman gave.
Please help me?
rg,
Eric
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/KeyListener-trouble-tp5711992p5712011.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid