Wednesday 15 January 2014

java - dynamically change the length of String inside the EditText field in Android -



java - dynamically change the length of String inside the EditText field in Android -

i using edittext field in application.

edittext entering ddns input:

e.g www.example.com/xxxx

i want restrict length of ddns id 30 characters after "/" character.

i.e after "/" character, follows must of maximum 30 characters

i want dynamically , restrict user not type more 30 characters.

how can it.

you can seek below way restrict user come in less 30 character.

tf.addactionlistener(new actionlistener() { @override public void actionperformed(actionevent arg0) { //processing part } });

java android regex android-edittext

No comments:

Post a Comment