Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Screenshot from custom view #328

@Melphin

Description

@Melphin

why you can't take screenshot from custom view?
I think, you can add this feature

add method

private static void takeScreenshot(File file, final View view)

and refer from

private static void takeScreenshot(File file, final Activity activity)
{
   takeScreenshot(file, activity.getWindow().getDecorView())
}

end add public method

public static void screenshot(View view, String tag)

what you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions