github:
https://github.com/anymyna/ui

https://github.com/chrisbanes/PhotoView
Implementation of ImageView for Android that supports zooming, by various touch gestures.

效果:
Android PhotoView 使用教程_第1张图片

步骤:
1、 初始化

allprojects {repositories {        maven { url "https://jitpack.io" }    }}
dependencies {    implementation 'com.github.chrisbanes:PhotoView:1.2.6'}

2、 用法

<com.github.chrisbanes.photoview.PhotoView    android:id="@+id/photo_view"    android:layout_width="match_parent"    android:layout_height="match_parent"/>
PhotoView photoView = (PhotoView) findViewById(R.id.photo_view);photoView.setImageResource(R.drawable.image);

更多相关文章

  1. Android中事件处理之LongClickListener实现步骤
  2. Android 初始化Setup Wizard——Provision
  3. Android中点击事件之FocusChangedListener实现步骤
  4. Android 编译流程解析01-AppPlugin初始化
  5. Android Studio 下载 与 安装 详细步骤
  6. android 软键盘隐藏 activity初始化时edittext聚焦
  7. Android market 发布个人免费应用的步骤

随机推荐

  1. 如何检查 Android(安卓)应用的内存使用情
  2. android: Error:元素内容必须由格式正确
  3. Android(安卓)Developers:指定在线程中运
  4. Android群发短信草稿保存与发送机制
  5. 安卓实战开发之CardView的selector及Grid
  6. 完美解决 Android(安卓)studio 检测不到
  7. Android(安卓)UI实战之基于Toolbar与Navi
  8. Android(安卓)引导页实现
  9. Android(安卓)NDK开发之入门示例 用C++
  10. .Net码农学Android---五分钟了解布局