I have a scrollView with rounded corners. In the ScrollView is a LinearLayout that has the same drawable with rounded corners. This is all working fine. I have a scrolling container with rounded edges. I am adding children to the LinearLayout(vertical) that have square edges. I am looking for a way to have them stay square while in the middle of the LL, but be cropped when they approach the bottom or the top. Basically, I want them to not bleed out over the rounded corners as they are now.
My initial idea was to canvas.clipPath around the edges of the LL in hopes that the interior children would not be drawn there. That did not work out. Any ideas?