Skip to content

优化后的DragPhotoView, A photoView to scale image and finish activity,高仿微信可拖拽返回PhotoView,二次调整优化处理,增加多种功能

Notifications You must be signed in to change notification settings

CarGuo/DragPhotoView

 
 

Repository files navigation

一、优化后高仿微信的图片预览

目前已经优化部分

  • 共享动画效果优化,针对长图、宽图、方形图以及小图与大图不同比例等。
  • 触摸,拖动,长按,滑动复原等问题优化
  • 集成ViewPager模式,支持拖拽与不拖拽,方便直接调用大图查看
  • 使用微信的沉浸式主题解决界面全屏与分全屏之间的闪动

(forked from githubwing/DragPhotoView,进行二次调整与优化)


二、依赖

在你的项目project下的build.gradle添加

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

在module下的build.gradle添加依赖

dependencies {
    compile 'com.github.CarGuo:DragPhotoView:v1.0.8'
}

三、使用

1、DragPhotoView 配合 DragPhotoViewPagerHelper使用

2、预览简单调用方法

public static void goToDragPhotoView(final Activity context, View imageView, final List<String> imageList, int currImageIndex,
                                         OnImageLoaderListener imageLoaderListener, DragOnLongClickListener dragOnLongClickListener)

public static void goToPhotoView(final Activity context, final List<String> imageList, int currImageIndex,
                                                    OnImageLoaderListener imageLoaderListener, DragOnLongClickListener dragOnLongClickListener)

License

Copyright 2016 androidwing1992

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.

About

优化后的DragPhotoView, A photoView to scale image and finish activity,高仿微信可拖拽返回PhotoView,二次调整优化处理,增加多种功能

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%