filmov
tv
How to create an android image viewer - Part 6 Using View.OnLongClickListener

Показать описание
This is part 6 of the android tutorial series about creating an android image viewer using the android local storage framework that was introduced in android lollipop.
For part 6 we will be adding a long click listener to the image. When a finger is placed and held on the image it will activate the long click listener and display a toast message.
This will be the first part of the implementation for pinch zoom of the image. Where when the image is long clicked (pressed) or will then open an ImageView containing the full sized image.
Github details:
You can get it from here
or you can run this command
In this tutorial we will cover:
- How to resize an image by adjusting its padding in the layout xml file
- How to attach a OnLongClickListener to an ImageView
API's covered
- ImageView
- View.OnLongClickListener
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.
For part 6 we will be adding a long click listener to the image. When a finger is placed and held on the image it will activate the long click listener and display a toast message.
This will be the first part of the implementation for pinch zoom of the image. Where when the image is long clicked (pressed) or will then open an ImageView containing the full sized image.
Github details:
You can get it from here
or you can run this command
In this tutorial we will cover:
- How to resize an image by adjusting its padding in the layout xml file
- How to attach a OnLongClickListener to an ImageView
API's covered
- ImageView
- View.OnLongClickListener
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.
Комментарии