Allow multi-line in EditText view in Android?

前端 未结 15 1718
既然无缘
既然无缘 2020-11-28 17:40

How to allow multi-line in Android\'s EditText view?

15条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 17:53

    
    

    and in Activity to remove "\n" is user press nextline

    String editStr= edittxtAddress.getText().toString().trim();
    
     MyString= editStr.replaceAll("\n"," ");
    

提交回复
热议问题