Hi,
I've got a query regarding edittext. I've added an edit text programmatically (ie NOT using the designer - I actually can't because I'm adding in an undetermined array of edittext views), everything works fine except that when I try to edit the initial text value, the original remains on screen, overlaying the edited one, i.e. both the original text value and the edited one show at the same time.
For example :-
Dim edt_input As EditText
edt_input.Initialize("edt_input")
edt_input.Tag="field"
edt_input.Text="default"
for this, if I try and edit the text, the word 'default' remains on the label in addition to whatever edit I do.
I thought a possible solution might be to implement the 'TextChanged' call, for example
Sub edt_input_TextChanged (Old As String, New As String)
Dim Send As EditText
Send=Sender
Send.Text= New
End Sub
However this is causing the app to crash.
Just wondering if anyone could advise a workaround for this?
Many thanks in advance!
I've got a query regarding edittext. I've added an edit text programmatically (ie NOT using the designer - I actually can't because I'm adding in an undetermined array of edittext views), everything works fine except that when I try to edit the initial text value, the original remains on screen, overlaying the edited one, i.e. both the original text value and the edited one show at the same time.
For example :-
Dim edt_input As EditText
edt_input.Initialize("edt_input")
edt_input.Tag="field"
edt_input.Text="default"
for this, if I try and edit the text, the word 'default' remains on the label in addition to whatever edit I do.
I thought a possible solution might be to implement the 'TextChanged' call, for example
Sub edt_input_TextChanged (Old As String, New As String)
Dim Send As EditText
Send=Sender
Send.Text= New
End Sub
However this is causing the app to crash.
Just wondering if anyone could advise a workaround for this?
Many thanks in advance!