文件名称:DragImageView
介绍说明--下载内容均来自于网络,请自行研究使用
最近的一个android 项目中,客户要求在查看拍照上传的图片时,可以对图片进行多点触控的拖拽、放大、缩小等操作。网上的范例都不怎么好,实现的效果差强人意。
下面说说我的方案:
步骤一:自定义一个View,该View继承自ImageView。在该View中实现多点触控的拖拽、缩放等功能。
步骤二:像使用ImageView那样,在XML中引入该View。当然也可以动态创建该View然后添加到容器组件中。-A recent android projects, customer requirements when viewing photos uploaded images, the images can be multi-touch drag, zoom and other operations. The Internet is not a good example of how to achieve the effect of poor.
Here to talk about my plan:
Step one: Customize a View, The View inherited from ImageView. Multi-touch dragging in the View, zoom and other functions.
Step Two: Use ImageView like that, the introduction of the View in XML. Of course, you can dynamically create the View and then added to the container component.
下面说说我的方案:
步骤一:自定义一个View,该View继承自ImageView。在该View中实现多点触控的拖拽、缩放等功能。
步骤二:像使用ImageView那样,在XML中引入该View。当然也可以动态创建该View然后添加到容器组件中。-A recent android projects, customer requirements when viewing photos uploaded images, the images can be multi-touch drag, zoom and other operations. The Internet is not a good example of how to achieve the effect of poor.
Here to talk about my plan:
Step one: Customize a View, The View inherited from ImageView. Multi-touch dragging in the View, zoom and other functions.
Step Two: Use ImageView like that, the introduction of the View in XML. Of course, you can dynamically create the View and then added to the container component.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DragImageView
.............\.classpath
.............\.project
.............\AndroidManifest.xml
.............\assets
.............\bin
.............\...\AndroidManifest.xml
.............\...\classes
.............\...\classes.dex
.............\...\.......\com
.............\...\.......\...\jj
.............\...\.......\...\..\drag
.............\...\.......\...\..\....\BitmapUtil.class
.............\...\.......\...\..\....\BuildConfig.class
.............\...\.......\...\..\....\DragImageView$MODE.class
.............\...\.......\...\..\....\DragImageView$MyAsyncTask$1.class
.............\...\.......\...\..\....\DragImageView$MyAsyncTask.class
.............\...\.......\...\..\....\DragImageView.class
.............\...\.......\...\..\....\MainActivity$1.class
.............\...\.......\...\..\....\MainActivity.class
.............\...\.......\...\..\....\R$attr.class
.............\...\.......\...\..\....\R$drawable.class
.............\...\.......\...\..\....\R$id.class
.............\...\.......\...\..\....\R$layout.class
.............\...\.......\...\..\....\R$string.class
.............\...\.......\...\..\....\R.class
.............\...\dexedLibs
.............\...\.........\annotations-f34f12f5a84e230e00a61f54baedf722.jar
.............\...\DragImageView.apk
.............\...\jarlist.cache
.............\...\res
.............\...\...\drawable-hdpi
.............\...\...\.............\ic_launcher.png
.............\...\...\drawable-ldpi
.............\...\...\.............\ic_launcher.png
.............\...\...\drawable-mdpi
.............\...\...\.............\ic_launcher.png
.............\...\...\drawable-xhdpi
.............\...\...\..............\ic_launcher.png
.............\...\resources.ap_
.............\gen
.............\...\com
.............\...\...\jj
.............\...\...\..\drag
.............\...\...\..\....\BuildConfig.java
.............\...\...\..\....\R.java
.............\proguard-project.txt
.............\project.properties
.............\res
.............\...\drawable-hdpi
.............\...\.............\huoying.jpg
.............\...\.............\ic_launcher.png
.............\...\.............\you.jpg
.............\...\drawable-ldpi
.............\...\.............\ic_launcher.png
.............\...\drawable-mdpi
.............\...\.............\ic_launcher.png
.............\...\drawable-xhdpi
.............\...\..............\ic_launcher.png
.............\...\layout
.............\...\......\main.xml
.............\...\values
.............\...\......\strings.xml
.............\src
.............\...\com
.............\...\...\jj
.............\...\...\..\drag
.............\...\...\..\....\BitmapUtil.java
.............\...\...\..\....\DragImageView.java
.............\...\...\..\....\MainActivity.java