EditText with Single Line, Line Wrapping and Done Action in Android

Regular formula for making an EditText
– Single Line : no new line <Enter> allowed,
– Line Wrapping : Single line wrapped into multiple lines, and
– Done Action : imeAction set as actionDone

is possible through only XML properties. That is,

But, only this is not enough. You need to set all these properties programatically.

You have to set all the extra options (other than layout_width and layout_height) programatically. That is,

About Krrishnaaaa

Socially known as Navkrishna.. An Android application developer. He likes to create tutorials and post them here or on YouTube or GitHub.. All these activities are shared on Facebook, Twitter, and G+ page.