Skip to content

Commit

Permalink
updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
Viven committed Nov 28, 2016
1 parent 7906b57 commit dc839b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ public boolean dispatchTouchEvent(MotionEvent ev) {
return imageZoomHelper.onDispatchTouchEvent(ev) || super.dispatchTouchEvent(ev);
}
```
One last thing, set the R.id.zoomable tag to the Views that you would like to be zoomable.
Set the R.id.zoomable tag to the Views that you would like to be zoomable.
```java
ImageZoomHelper.setViewZoomable(findViewById(R.id.imgLogo));
```
To enable/disable zoom for certain Views (e.g. Recycler View refreshing)
```java
ImageZoomHelper.setZoom(view, false)
```
### Advanced Usage
For a smoother zoom transition, set the layout to be fullscreen. This only works on API 16 and above.

Expand Down

0 comments on commit dc839b5

Please sign in to comment.