ImageView and FrameLayout with gestures control and position animation.
Main goal of this library is to make images viewing process as smooth as possible and to make it easier for developers to integrate it into their apps.
- Gestures support: pan, zoom, quick scale, fling, double tap, rotation.
- Gestures listener: down, single tap, double tap, long press.
- Lots of [settings] (https://github.com/alexvasilkov/GestureViews/wiki/Settings).
- Seamless integration with ViewPager (panning smoothly turns into ViewPager flipping and vise versa).
- State animation (animating position, zoom, rotation).
- View position animation ("opening" animation). Useful to animate into full image view mode.
- Advanced animation from RecyclerView (or ListView) into ViewPager which keeps track of views positions.
- Image cropping (supports rotation).
- Supports both ImageView and FrameLayout out of the box, but also supports custom views.
Add dependency to your build.gradle
file:
compile 'com.alexvasilkov:gesture-views:2.0.3'
Note: min SDK version for library is 9, but it was tested mainly on 15+.
Copyright 2014 Alex Vasilkov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.