pellizza Posted November 23, 2012 Report Share Posted November 23, 2012 (edited) he estado mucho tiempo buscando una solución y a la única que he llegadoes la de justificar llamando a un html con estilo, pero necesito saber comojustificar 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 November 23, 2012 by pellizza Link to comment Share on other sites More sharing options...
cañangasñangas Posted November 23, 2012 Report Share Posted November 23, 2012 he estado mucho tiempo buscando una solución y a la única que he llegadoes la de justificar llamando a un html con estilo, pero necesito saber comojustificar 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 More sharing options...
pellizza Posted November 23, 2012 Author Report Share Posted November 23, 2012 es un string alojado en el xml Link to comment Share on other sites More sharing options...
AshWilliams Posted November 23, 2012 Report Share Posted November 23, 2012 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 optioncalled gravity. Set gravity to "vertical-center|horizontal-center" and thatshould do the trick. Saludos :krider: Link to comment Share on other sites More sharing options...
cañangasñangas Posted November 23, 2012 Report Share Posted November 23, 2012 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 optioncalled gravity. Set gravity to "vertical-center|horizontal-center" and thatshould do the trick. Saludos :krider: asi es como dice Ash tienes que justificar con el plugin Link to comment Share on other sites More sharing options...
pellizza Posted November 23, 2012 Author Report Share Posted November 23, 2012 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 More sharing options...
cañangasñangas Posted November 23, 2012 Report Share Posted November 23, 2012 checka que tal te va con esto: http://stackoverflow.com/questions/8225353/text-justification-library-in-java/9755219#9755219 Link to comment Share on other sites More sharing options...
pellizza Posted November 23, 2012 Author Report Share Posted November 23, 2012 ese lo intente y nunca funko xD gracias =) ese lo intente y nunca funko xD gracias =) Link to comment Share on other sites More sharing options...
cañangasñangas Posted November 23, 2012 Report Share Posted November 23, 2012 si no pillas otro metodo te dejo el enlace de textView de android voy a checkar a ver si pillo algo... http://developer.android.com/reference/android/widget/TextView.html http://developer.android.com/reference/android/widget/TextView.html#attr_android:gravity Link to comment Share on other sites More sharing options...
zafrada Posted March 24, 2013 Report Share Posted March 24, 2013 ese lo intente y nunca funko xD gracias =) ese lo intente y nunca funko xD gracias =)probaste esta? http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now