La vista de texto de Android no admite el salto de línea

Estoy creando una vista personalizada mediante programación que muestra el texto que se analiza desde un archivo XML. El texto es largo y contiene el carácter "/ n" para forzar saltos de línea. Por alguna razón, la vista de texto muestra la / n y no hay saltos de línea. Aquí está mi código:

                    // get the first section body
                    Object body1 = tempDict.get("FIRE");
                    String fireText = body1.toString();

                    // create the section body
                    TextView fireBody = new TextView(getActivity());
                    fireBody.setTextColor(getResources().getColor(R.color.black));
                    fireBody.setText(fireText);
                    fireBody.setTextSize(14);
                    fireBody.setSingleLine(false);
                    fireBody.setMaxLines(20);
                    fireBody.setBackgroundColor(getResources().getColor(R.color.white));

                    // set the margins and add to view
                    layoutParams.setMargins(10, 0, 10, 0);
                    childView.addView(fireBody,layoutParams);

El texto del archivo XML es así:

Now is the time /n for all good men to /n come to the aid of their /n party

Debería mostrarse como tal;

Now is the time
for all good men to
come to the aid of their
party

¿Hay ajustes que me faltan?

ACTUALIZAR

\ r \ n funciona si lo codifico en mi vista. es decir:

String fireText = "Now is the time \r\n for all good men \r\n to come to the aid";

En realidad, \ n también funciona si lo código duro:

String fireText = "Line one\nLine two\nLine three";

Para tu información

System.getProperty("line.separator");

esto devuelve una cadena de "/ n" por lo que no hay necesidad de convertir a "/ r / n".

Desafortunadamente, mis datos se originan en un archivo XML que se analiza y almacena en un mapa de hash. Intenté lo siguiente:

String fireText = body1.toString().replaceAll("\n", "\r\n");

El \ n no está siendo reemplazado por \ r \ n. ¿Podría ser porque estoy convirtiendo de un objeto a String?

Respuestas a la pregunta(6)

Su respuesta a la pregunta