I have a string like this 08:12:01,868 -> hour:minute:second,millisecond
now I need to edit this, I must give an option to edit first two character skip one for : then allow edit next two character again skip : and so on.
Currently I'm achieving this with lot of logic behind. I have four edit text and I'm splitting the string, then loading values in 4 edit texts and retrieving it. After joining all the edited sub strings I'm saving the value in DB.
Is there any other better way to achieve this.
I mean I'll load the string in only one edit text, Then I should be able to lock specific characters like lockFromEditChar(":",",") and remaining values can be edited with default value zero if they clear all the character.
Is it possible ? or any other best alternatives ?