请教一个关于EditText的问题 try:yourString.replace("\\n", "\n"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我读取的是windows环境下编辑的文本文件,故换行都是"\r\n",但是我把文件内容读取出来后,显示出来之前都已经用replace("\r\n", "\n");,Android4.0上EditText还是不能换行的,Android2.3是能换行的。 看看Android4.0上EditText的源代码 maybe you can try to test a demo that write something into edittext on 4.0 .and then get the content . lookup the string is what txt_edit = (EditText) findViewById(R.id.txt_edit); txt_edit.setText("村\n可");经我在android 2.3.5 和4.2上测试,都可以换行 登陆这个逻辑怎么实现啊? android系统中,在htc手机上设置焦距 srec.doxygen 这个文件是什么作用? Android实现拨号功能的问题 android Binder具体是干什么用的? 小心机器人! 获取listview每一行的position 参加谷歌android编程大赛遇到的一些困惑 关于android支持多重屏幕的例子 菜鸟求助 环信 Unknown Source 用adb工具复制文件到模拟器出错,怎么回事? 使用什么软件查看android source code?
txt_edit.setText("村\n可");
经我在android 2.3.5 和4.2上测试,都可以换行