Detailed explanation of the use method of Android third-party control photoview

Introduction to photoview:

This is a picture viewing library, which realizes the picture browsing function and supports the pinch gesture or click to zoom in and out. Support page turning and image browsing in viewpager.

Photoview is an intelligent control extended from Android ImageView and supports image scaling through single point / multi-point touch. The function is practical and powerful.

Functions of photoview:

Picture browsing view two finger zoom single touch zoom picture zoom mode settings

Basic usage: import the jar package, set the photoview in the layout XML, and transfer the ImageView to the photoviewattacher

Code demonstration:

Use photoview to load, zoom and click network pictures and local pictures. In the event processing layout file:

In mainactivity:

In baseapplication:

In the master manifest configuration file:

Jar packages to import:

photoview-library-1.2.2.jar universal-image-loader-1.9.2_ sources.jar

Effect display:

Jar package and source code: Download

There are bugs in this library. Refer to this library

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>