android读取txt文件到textview中显示不换行的问题
如图,换行没了,如何解决
try {
InputStreamReader inputReader = new InputStreamReader(context.getResources().getAssets().open(fileName));
BufferedReader bufReader = new BufferedReader(inputReader);
String line = "";
String result = "";
while ((line = bufReader.readLine()) != null) {
result += line;
}
return result;
} catch (Exception e) {
e.printStackTrace();
}