Skip to content

Question: how to use center-crop, but not from the center , but from a different point? #2

@AndroidDeveloperLB

Description

@AndroidDeveloperLB

Is there something similar to center-crop, yet I have the choice where to focus in terms of specific point/rectangle in the bitmap?
I want to make sure a specific point/rectangle is shown while fitting&cropping.
How can I do it?
Currently the only similar thing that exists officially for ImageView is center-crop, but it's only to the center. What if the most important part in the image is at the bottom, instead? Or 10% (or 10px) from the bottom, etc... ? Or if there is a specific region in the bitmap that's most important?

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