开发者

android: resize a child without resizing a parent

开发者 https://www.devze.com 2023-02-19 19:57 出处:网络
I have a child view within a parent view. If I resize the child, the parent is also resized. Can I make parent not bei开发者_如何学Gong resized, when I resize the child?

I have a child view within a parent view. If I resize the child, the parent is also resized. Can I make parent not bei开发者_如何学Gong resized, when I resize the child?

android: resize a child without resizing a parent


No? I think the premise of the view hierarchy is that a child view's bounds are contained wholly within its parent's bounds.

You could get an effect similar to the one you desire by wrapping the two views in a FrameLayout, allowing them to overlap as sibling views.

0

精彩评论

暂无评论...
验证码 换一张
取 消