From dc839b5719a85e7719448e71e19350f008c11733 Mon Sep 17 00:00:00 2001 From: Viven Date: Mon, 28 Nov 2016 16:24:12 +0800 Subject: [PATCH] updating README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc983ea..b8c23f2 100644 --- a/README.md +++ b/README.md @@ -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.