机器人:如何让一个子视图重叠的父母? [英] android: how to make a child view overlap the parent?

查看:159
本文介绍了机器人:如何让一个子视图重叠的父母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现布局中的图片。父母和兄弟姐妹都在一个垂直的LinearLayout。所以,我需要一个子视图重叠它的父。我能做到这一点在Android的?

I need to implement the layout as in the picture. Parent and Sibling are in a vertical LinearLayout. So I need to make a child view to overlap it's parent. Can I do that in android?

推荐答案

如果:

  1. 兄弟的是同级的
  2. 的是的ViewGroup
  3. 你真的想要的孩子的是一个孩子的
  1. sibling is a sibling of parent
  2. parent is a ViewGroup
  3. and you really want child to be a child of parent

那么也许你可以考虑使用<一个href="http://developer.android.com/reference/android/view/ViewGroup.html#attr_android%3aclipChildren"相对=nofollow>机器人:clipChildren 的设置为false的

then maybe you could consider using android:clipChildren set to false on parent.

这篇关于机器人:如何让一个子视图重叠的父母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆