Difference(s):
android:src
andtools:src
?
If any, when is it considered proper to use tools:src
over android:src
?
Difference(s):
android:src
andtools:src
?
If any, when is it considered proper to use tools:src
over android:src
?
If you are using android:src
in xml during runtime this will show up on the app, whereas if you use tools:src
in xml it will show only on the preview of Android studio and not on the runtime of the app.
If you start to use support library (vectorDrawables.useSupportLibrary = true
), change tools:src
to tools:srcCompat