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.
我想用一个小的独特图像填充每个矩形。有没有最好的方法来做到这一点?现在它们是使用 Paint 对象绘制的。
I will answer my question for future reference then. Kotlin doesn't have the exact same solution, but you can draw bitmaps into rects similar to this way:
canvas.drawBitmap(image, Rect(0, 0, image!!.width, image!!.height), rect, null)