Difference(s): Android:src And Tools:src?
Difference(s): android:src and tools:src? If any, when is it considered proper to use tools:src over android:src?
Solution 1:
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.
Solution 2:
If you start to use support library (vectorDrawables.useSupportLibrary = true
), change tools:src
to tools:srcCompat
Post a Comment for "Difference(s): Android:src And Tools:src?"