Blog133.7K views4,578 votes0 replies4,755 following
Merging Dirty Rectangles with Rect.union: A Practical Guide for Android Custom Views
Learn how to combine clipping regions in Android custom views using Rect.union, with a worked example and the overflow and normalization risks to watch for.