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!

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

Meng Meng
Meng Meng
745 Points

The latest ADT Don't allow you to set font size or any related shit for a button

in the activity main.xml, there is no way to style the button text from the GUI that latest ADT provided (Build: v22.3.0-887826)

Is it kinda bug or there is a trick?

Meng Meng
Meng Meng
745 Points

just figure out I can type in the code "fontsize" then back to the GUI, that option is enabled....

2 Answers

Paul Stevens
Paul Stevens
4,125 Points

Hello,

A few people have had problems with being unable to edit the properties of things, including myself. The common answer that seems to work is to install API 18 in the SDK manager and use that in the layout editor. Here are a few forum links that might help with your problem.

https://teamtreehouse.com/forum/customizing-buttons-and-labels-3

https://teamtreehouse.com/forum/properties-of-the-button-not-changing

https://teamtreehouse.com/forum/properties-isnt-editable-need-api-18

https://teamtreehouse.com/forum/having-trouble-editing-properties

https://teamtreehouse.com/forum/task-list-errors-and-outline-properties-not-editable

Hopefully one of those will help you, if I have understood your problem correctly.

Paul :)

Meng Meng
Meng Meng
745 Points

Thanks Paul, it works!

Extra tips for the newbie like me, you just need to download the SDK platform under Android 4.3 (API 18), no need for the whole package.

Cant attach screenshot, but I think they would figure it out.

Cheers!