Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Allow to change return value of onPreDraw in View.doOnPreDraw  #542

@cypressious

Description

@cypressious

According to https://developer.android.com/reference/android/view/ViewTreeObserver.OnPreDrawListener#onPreDraw(), the return value of onPreDraw has the following use:

Return true to proceed with the current drawing pass, or false to cancel.

View.doOnPreDraw currently always returns true. Please allow to control the return value, e.g. by providing an overload with the parameter action: (view: View) -> Boolean

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