Phenomenon
In Android development, it is often necessary to replace the picture in res\drawable, open the File Preview layout page under Res\layout to find that the image has been replaced, but in the simulator or the real machine run on the discovery that the picture has not been replaced, or use the original resource picture.
Reason
During the development process, a picture resource file (such as drawable-hdpi, drawable-ldpi, and DRAWABLE-MDPI) under the Res folder is copied to the Bin folder after the first run, because the program is tested with an emulator. After you replace the resource picture, Eclipse does not know if there are any changes to the picture, so it will be packaged using the resource files from the Res folder in the original bin, and the pictures are in the files copied by the first eclipse, so when you run the program, you will find that the replacement resource picture is not working in the program.
Solving method
Since eclipse has not copied the latest resource files, we only need to remove the Res directory from the Project Bin directory (which can be deleted together with three files, such as the. apk,. Dex and. Ap_), and then build the project APK file.
Other supplements:
Each run will handcuff the Res folder to Bin, and because Eclipse does not know if there is a picture change when replacing the picture, it will be packaged using the resource files from the res in the original bin, so the picture remains the same
All you have to do is remove the Res directory from the Project Bin directory (which can be deleted together with the APK,DEX,AP_ files generated under bin).
Also under the bin there is a classes should be the corresponding Java file generated class file