开发者

android: resize a child without resizing a parent

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜