Adding scrollview to Edditext

view story

http://stackoverflow.com – I have an input box - edittext in android, which is not single line. I want that when three lines are complete then the edittext should stop expanding and scrollview should attach to the edittext at that time. I can add scrollview directly? (HowTos)