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
Lahiru Vikum Thamel316 Points
what is the difference between 'android:background="" ' & 'tools:background="" ' ?
what is the difference between
when it is first one, color appeared to the background. But when it is second, color doesn't appear. What is the purpose of the second one?
Seth Kroger56,409 Points
android:background will set the background in the app, tools:background will only set it in the design editor/preview. tools: is useful to set a placeholder or dummy text/value to help visualize the design better if the text/value is completely dynamic in the app itself.