Jump to content

como puedo justificar texto en para aplicaciones android?


pellizza

Recommended Posts

he estado mucho tiempo buscando una solución y a la única que he llegado

es la de justificar llamando a un html con estilo, pero necesito saber como

justificar un string dentro del xml, me han dicho que haciendo padding, pero no me resulta,

si alguien tiene un ejemplo o explicarlo lo agradeceria mucho =)

Edited by pellizza
Link to comment
Share on other sites

he estado mucho tiempo buscando una solución y a la única que he llegado

es la de justificar llamando a un html con estilo, pero necesito saber como

justificar un string, me han dicho que haciendo padding, pero no me resulta,

si alguien tiene un ejemplo o explicarlo lo agradeceria mucho =)

 

quieres justificar en html, o es un string obtenido de un html, no me quedo claro...

Link to comment
Share on other sites

 

If you are in the eclipse ide with the android plugin, select the text view

(open the xml file) and go to the properties tab. There should be an option

called gravity. Set gravity to "vertical-center|horizontal-center" and that

should do the trick.

 

Saludos :krider:

Link to comment
Share on other sites

 

If you are in the eclipse ide with the android plugin, select the text view

(open the xml file) and go to the properties tab. There should be an option

called gravity. Set gravity to "vertical-center|horizontal-center" and that

should do the trick.

 

Saludos :krider:

 

asi es como dice Ash :sigay: tienes que justificar con el plugin

Link to comment
Share on other sites

casi, pero no justifico =/

lo del pluguin es para que el ide pudeda responder a android para su lectura, desarrollo y ejecución

 

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:gravity="center_vertical|center_horizontal"

android:text="@string/texto"

android:textAppearance="?android:attr/textAppearanceLarge" />

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...