I have an edit text which is a date )and another time) entry
I have implemented an onclick delegate which shows a datetimepicker
I have set the edittext to be non editable so that onclick only the
datetimepicker dialog appears
<EditText
android:id="@+id/depdate"
android:layout_width="0px"
android:layout_weight="0.33"
android:layout_height="fill_parent"
android:text="12/12/2011"
android:editable="false">
but despite this on the first click the keyboard still appears - it
disappears if one clicks twice and then the datetimepicker appears??
I have also tried this
imm.HideSoftInputFromWindow(depdate.ApplicationWindowToken, 0);
but that doesn't do anything
reading the Android java stuff on stackoverflow they suggest subclassing the
edit text but I am struggling to convert this into MonoDroid
the suggested subclass is
public class EditTextEx extends EditText {
public EditTextEx(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onCheckIsTextEditor() {
return false;
}
}
which - I think - is translated into c# monodroid as
public class EditTextEx : EditText {
public EditTextEx(Context context, AttributeSet attrs)
{
base(context, attrs);
}
protected override bool onCheckIsTextEditor() {
return false;
}
}
But that is giving me errors and I don't know if even this will work
Can anyone give me some advice ?
Tia
John Murray
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid