Share My Creation Double Space EditText

I needed to double space edittext for a project and ended up writing some code to achieve this. An example is attached, I hope you find it useful.

You need to be aware that some functions, notably text input change, calls the _TextChanged method, so you may want to build in provision to exit if it causes problems.

This is very basic and does not take account of pasting from a clipboard, if you enable it you will need to amend the code.

It hasn't been tested to destruction so if you find any problems with it, please let me know.

Steve
 

Attachments

  • dblspc.zip
    6.9 KB · Views: 605

stevel05

Expert
Licensed User
Longtime User
And here's the easy way!!!! One of Erel's post's referred to on Stack Overflow about using reflection on edit text had the answer all the time. :eek:
 

Attachments

  • dblspc2.zip
    6.3 KB · Views: 514
Top