2011-06-06 20 views
6

Aquí está mi problema. ¿Cómo hacer que el texto no se ajuste?Android TextView Wrap

Ya he intentado hacer el texto más pequeño. No funcionó Intenté hacer singleline="true". Esto es lo que hacer (2 captura de pantalla de Vista de Texto 6-7)

1 Imagen) Aquí está lo hice en el Eclipse

2 Captura de pantalla) Aquí es cómo showen en el emulador

Here is I made it in the Eclipse Here is how it showen in the emulator

+2

Usted debería mostrar algún código. –

+0

no hay código ... solo hay OnCreate startActivity – Sergio

Respuesta

4

Pruebe la configuración android:ellipsize a none para cada TextView. Para obtener más detalles, vea documentation en este atributo.

De xml:

<TextView ... android:ellipsize="none" /> 

De código:

TextView textView = new TextView(context); 
... 
textView.setEllipsize(null); 
+0

OK ... esto funcionó – Sergio

3

tratar de darle a android: propiedad maxLines = 1 ... SingleLine también debería funcionar ...

+0

no. Porque corta el texto y no muestra el resto. –