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 Implementing Designs for Android Using Custom Styles and Themes Adding Styles to TextViews

Wesley Seago
Wesley Seago
10,424 Points

For those using Android Studio!

When using Android Studio, after selecting lines in the .xml file, when you choose Refactor/Extract/Style, style will not be available to select it. To do this in Android Studio, just simply click somewhere in the xml item you want to extract (Do not select an entire line), and choose Refactor/Extract/Style. Style will be available to select. This will open a dialog to name the style, and the style items will be properly extracted to the styles.xml file, and the correct style tag will be added to the xml item extracted from.

Noah Schill
Noah Schill
10,020 Points

Helped a tonne! Much thanks!

Slava Fleer
Slava Fleer
6,086 Points

Much faster than in video =). Thanks

5 Answers

Thank you!

Robert Proulx
Robert Proulx
6,538 Points

Would be nice if you could upvote the original post, this just saved me some head-scratching.

Thanks alot!

RockStar!!