文本的繪制比較隨機了,下面繪制,但要保證高度為:當前高度 x textSize,寬度為 i x textSize 1 2 int index = (int) Math.floor(Math.random() * characters.length); canvas.drawText(characters, index, 1, i * textSize, drops[i] * textSize, paint); 下面是核心代碼實現(xiàn) 1 2 3 4 5 6 7 8 ...
www.dbjr.com.cn/program/317922i...htm 2025-5-16