区别:android:src和tools:src?
差异:区别:android:src和tools:src?,android,Android,差异:android:src和工具:src? 如果有的话,什么时候使用tools:src优于android:src?如果您在运行时使用xml中的android:src,这将显示在应用程序上,而如果您使用xml格式的tools:src,它将仅显示在Android studio的预览上,而不会显示在应用程序的运行时上。如果您开始使用支持库(),请将tools:src更改为tools:srcCompat
android:src
和工具:src
?
如果有的话,什么时候使用
tools:src
优于android:src
?如果您在运行时使用xml中的android:src
,这将显示在应用程序上,而如果您使用xml格式的tools:src
,它将仅显示在Android studio的预览上,而不会显示在应用程序的运行时上。如果您开始使用支持库(),请将tools:src
更改为tools:srcCompat