android - how to go on next edit text when i press enter -


edittext nameedit = new edittext(this);     nameedit.sethint("first name");     blur.addview(nameedit);     nameedit.setwidth(32);       nameedit.setems(50);     marginlayoutparams params3 = (marginlayoutparams) nameedit.getlayoutparams();      params3.leftmargin = 16; params3.topmargin = 125;     nameedit.setlayoutparams(params3);     typeface font33=typeface.serif;     nameedit.settypeface(font33); 

here when press enter edit text become longer rether go next edittext view..... want gone on next edit text view when press enter....*

looks you're creating edittext programmatically. need set ime options setimeoptions() method. since (as understand it) not want allow multiple lines, should setmaxlines().

in case be:

edit.setmaxlines(1); edit.setimeoptions(editorinfo.ime_action_next); 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -