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.
我有几张图片,我知道它们的位置和大小...如何将我的图片放在一个 ImageView 中?(如下图所示)
你有两个选择:
Bitmap.createBitmap(int width, int height, Bitmap.Config config);
new Canvas(bitmap);
canvas.drawBitmap(...)