Skip to content

Add support for excluding specific child views from being veiled #46

Description

@adiputrastwn

Currently, when applying veil() to a layout container (like VeilLayout or VeilRecyclerFrameView), the library automatically masks all child views. In many UI designs, we want to keep certain elements, such as status icons, static headers, or specific buttons, visible and unmasked while the rest of the content is in a loading state. There is currently no easy way to "whitelist" or exclude specific views from the veiling effect.

I would like an attribute or a method to exclude specific views. Possible implementations could include:

XML Attribute: An attribute like app:veil_exclude="true" that can be applied directly to a child view within a VeilLayout.

Programmatic API: A method like veilLayout.excludeView(view) or veilLayout.excludeViewById(R.id.view_id) to be called before triggering veil().

Tag-based exclusion: Automatically excluding views that have a specific tag (e.g., android:tag="unveil").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions