Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我像这样从资源图像 png 加载可绘制对象: getResources().getDrawable(R.drawable.somepng); 磁盘上的 png 文件大小为 102x59,但接收到的 drawable 已经是 204x118。为什么?
可以取决于您的屏幕分辨率密度:看看这个外观,就像您提供 mdpi 图像并在 xdpi 设备上进行测试一样。