代码实现

需要在顶级父布局加上 android:clipChildren="false"属性,就能实现凸出去的效果。

如不生效

检查当前父布局是否设置了padding,删除padding就可以了。

更多推荐