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 Creating the Screen Layout Setting Colors

Nicholas Vitebsky
Nicholas Vitebsky
568 Points

How do I change the alpha value / transparency in the newest version of Android Studio?

I can change the color of the text easily, and the alpha value is present in the properties sidebar, but when I typed in 128, nothing really changed in the design layout portion of the studio.

Sumner Erhard
Sumner Erhard
7,652 Points

In your Properties window, you should be able to edit a field called "alpha." From there, set the property to 128. Or input android:alpha=".5" in the TextView in the XML document.

2 Answers

Sunil Phani Manne
PLUS
Sunil Phani Manne
Courses Plus Student 3,959 Points

Select the TextView, and in the properties window, scroll to the "textColor". Click on the ... (ellipsis). Resources window appears. Select the "Color" tab. On the top right, you would find "Add new resource". Click on that and select "New Color Value...". You would find the textboxes in which you could key in the Alpha value.