Skip to content

Shadow on layout but not on it´s child views? #14

Description

@mikaelelofsson

Is it possible to only drop shadow on a layout, not having it set on it´s child views?

I want the shadow attached to a constraint layout, but not on an imagebutton that is in the layout.

Activity

  1. wenmin92 commented on Mar 8, 2018

    @wenmin92

    just set background will fix this.
    这个库的原理是:复制一遍绘制的内容,将内容的颜色成分去掉,保留alpha,然后使用模糊滤镜达到模拟阴影的效果。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions