Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val rect = Rect()
- digitArray.map {
- paint.getTextBounds(it, 0, 1, rect)
- Pair(rect.width(), rect.height())
- }.reduce { acc, newPair ->
- Pair(Math.max(acc.first, newPair.first), Math.max(acc.second, newPair.second))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement