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").
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)orveilLayout.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").