Baseflow / Baseflow/PhotoView

How to close dialog on click outside the image

Open
#737 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

I'm using PhotoView inside a full screen dialog like this
```

```
The PhotoView width and height are set to match_parent and hence cover the entire screen.
If image proportions differ from the screen ones then image is scaled to fit in the center and there will be some unused space in the view.
When user clicks on the view, is it possible to detect if the click was done outside the actual image to close the dialog?

![Screenshot_1579431662](https://user-images.githubusercontent.com/14937001/72680374-2bbf8d00-3aca-11ea-98e1-c6619424b70e.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.