How to create an android image viewer - Part 13 setting panning limits and saving last location

preview_player
Показать описание

These issues will be addressed in the following tutorial.

Starting with saving the location from the previous pan. And then setting panning limits which match the boundary of the image.

Github details:

or you can run this command

In this tutorial we will cover:
- Using X & Y members for saving the previous pan
- Saving the previous location on the action up event
- Using the previous location values on the action down event
- Setting the boundary limits to match the edges of the image

API's covered

For much more information checkout

The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.

Android studio (1.5) is the editor of choice (IDE) for this tutorial series.

This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Рекомендации по теме
Комментарии
Автор

Thank you so much! Those are best tutorial clips which I've ever seen.

ThanhNguyen-oytf
Автор

Wonderful tutorial. I followed through the whole series on this topic and get exactly what I needed. Thanks, mate!

jefffame
Автор

Very Very Awesome tutorial thank u much !

farzandkazmi
Автор

Hello Nigel! This was very usefull for me, Thank You that You made this tutorial!

Azta
Автор

Can you make a tutorial for ImageView slider from images from Gallery

ZZice
Автор

I am trying to implement the zoom and pan features from this tutorial into an app I am developing. At the beginning, you created an intent to open an image from the gallery. Is there a way to tell android to open an image file automatically without having to select it manually?
I'm thinking of adding my picture to the assets folder, but I'm unsure of how to reference it from there.
Thanks!

drs
visit shbcf.ru