Thanks for that Jon
If have this code but it causes an undandled exception-no messages no code
public class EditTextEx : EditText
{
public EditTextEx(Context context, Android.Util.IAttributeSet attrs)
: base(context, attrs)
{
}
public override bool OnCheckIsTextEditor()
{
return false;
}
}
Have I misinterpreted what you said ?
Supplementary question - why is it that setting edit to false or setting IMM
to hide does not work?
Best rgds
John Murray
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jonathan Pryor
Sent: 14 October 2011 02:58
To: [email protected]; Discussions related to Mono for Android
Subject: Re: [mono-android] an old basic question How to stop the softinput
appearing on an Edit text
On Oct 13, 2011, at 4:27 PM, John Murray wrote:
> which - I think - is translated into c# monodroid as
Close, but not quite:
> public class EditTextEx : EditText {
> public EditTextEx(Context context, AttributeSet attrs)
public EditTextEx (Context context, IAttributeSet attrs)
: base (context, attrs)
{
}
> protected override bool onCheckIsTextEditor() {
> return false;
> }
You need to use the correct casing and visibility:
public override bool OnCheckIsTextEditor ()
{
return false;
}
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid