Search code examples
androidandroid-custom-view

Can child ImageView exceed its parent ViewGroup bounds?


I'm trying to implement animated logo wich consist of two ImageView inside RelativeLayout. One is logo icon and other is "rays" behind it. "Rays" can be 3x larger then logo. I want to be able to set dimensions for it compound view (for example 200dp x 200dp), and let logo stretch this area, and rays to go beyond it. Is it possible?

Thank you in advance.

enter image description here


Solution

  • Short answer: No. Long Answer: Use FrameLayout.