Android Build a Simple Android App Creating the Screen Layout Setting a Fullscreen Theme

Lahiru Vikum Thamel
Lahiru Vikum Thamel
316 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?

1 Answer

Seth Kroger
Seth Kroger
56,362 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.