android studio 圖片資源的放置位置,你中槍了嗎?
阿新 • • 發佈:2019-01-25
記得一開始用studio的時候,帶我的人說圖片資源要放到mipmap下面。
所以之後的幾個專案的圖片資源就放到mipmap下面去了。這段時間看google的官方文件的時候,突然發現了這個,原來mipmap下面只是用來放icon的。而.png 、.9.png、.jpg、.gif 的圖片資源是放到drawable資料夾下的。多麼痛的領悟....
drawable/ |
Bitmap files (
|
mipmap/ |
Drawable files for different launcher icon densities. For more information on managing launcher icons with mipmap/ folders, see Managing
Projects Overview. |