Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (retired 2014) Pretty Little Things Customizing Buttons and Labels

Shaun Lim
Shaun Lim
5,447 Points

Eclipse on Windows

Hey all,

I'm doing the Android track and I seem to notice this behaviour with Eclipse on Windows. In one of the lessons that I am in now, we are asked to change the property of a button, specifically the text size. Eclipse does not seem to allow me to change that, that property seems to be locked. Any advise would be appreciated.

Thanks!

Regards, Shaun

5 Answers

Te recomiendo como principiante cambiar los atributos de las view's Por la vista XML , yo también tengo errores con el eclipse y sobre todo al cambiar atributos por la vista gráfica.

Espero que te aya servido mi consejo .

Saludos.

Quizás no puedes ver la ayuda ("IntelligSense") de Eclipse. Pruebe lo siguiente .

+Actualize el ADT de Android +Use "CTRL + SPACE" para mostrar la ayuda en la vista XML de tu Layout , donde esta el Boton . +Use esta propiedad en su boton para cambiar el Tamaño del Texto +```Java android:textSize="10sp"

+Te dejo el código completo.
```xml
<Button android:id="@+id/next_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/next"
            android:textSize="10sp"
/>
Shaun Lim
Shaun Lim
5,447 Points

Well, I managed to get it done in a rather roundabout way. I went into the xml view and manually added those properties under the button. After that, it was editable in the graphical layout view. Strange. Not sure if this is how it is supposed to behave.

Shaun Lim
Shaun Lim
5,447 Points

Don't know if I am saying this correctly but "Gracias por tu consejo! Muy apreciado"!

Te recomiendo como principiante cambiar los atributos de las view's Por la vista XML , yo también tengo errores con el eclipse y sobre todo al cambiar atributos por la vista gráfica.

Espero que te aya servido mi consejo .

Saludos.