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 trialNicholas Vitebsky
568 PointsHow 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.
2 Answers
Sunil Phani Manne
Courses Plus Student 3,959 PointsSelect 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.
Grynt Logmadrssen
2,556 PointsThanks!
Marco Fernandez-Cosio
1,045 PointsThank you so much!
Sumner Erhard
7,652 PointsSumner Erhard
7,652 PointsIn 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.