打赏

android ImageView

  1. PhotoView
    支持双击或双指缩放的 ImageView,在 ViewPager 等 Scrolling view 中正常使用,相比上面的 AndroidTouchGallery,不仅支持 ViewPager,同时支持单个 ImageView
    项目地址:https://github.com/chrisbanes/PhotoView
    原理剖析文档:[PhotoView](https://a.codekk.com/detail/Android/dkmeteor/PhotoView 源码解析)
    Demo 地址:https://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample
    APP 示例:photup

  2. Fresco-ImageView
    Fresco-ImageView是一种Android平台的图像控件,底层是对Fresco的封装,可以异步加载网络图片、项目资源和本地图片,并且支持双指缩放、图片的基本处理以及Fresco的所有特性。
    项目地址:https://github.com/HomHomLin/FrescoImageView

  3. android-gif-drawable
    支持 gif 显示的 view,用 jni 实现的,编译生成 so 库后直接 xml 定义 view 即可,而且本身不依赖于其他开源项目所以相对下面的 ImageViewEx 简单的多
    项目地址:https://github.com/koral--/android-gif-drawable

  4. ImageViewEx
    支持 Gif 显示的 ImageView,依赖很多,编译过程很繁琐
    项目地址:https://github.com/frapontillo/ImageViewEx
    Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/imageviewex-demo.apk?raw=true

  5. RoundedImageView
    带圆角的 ImageView
    项目地址:https://github.com/vinc3m1/RoundedImageView
    效果图:Renderings

  6. SelectableRoundedImageView
    ImageView 允许四个角的每一个有不同的半径值。也允许椭圆形、圆形的形状或者边
    项目地址:https://github.com/pungrue26/SelectableRoundedImageView
    Demo 地址:https://play.google.com/store/apps/details?id=com.joooonho
    效果图:Renderings

  7. ColorArt
    根据图片的均色设置背景色显示文字和图片,类似 itune11 中效果
    项目地址:https://github.com/MichaelEvans/ColorArt
    Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/color-art-demo.apk?raw=true

  8. CircleImageView
    圆形的 ImageView
    项目地址:https://github.com/hdodenhof/CircleImageView
    效果图:Renderings

  9. ImageViewZoom
    支持放大和平移的 ImageView
    项目地址:https://github.com/sephiroth74/ImageViewZoom
    APP 示例:https://play.google.com/store/apps/details?id=com.aviary.android.feather

  10. KenBurnsView
    实现 Ken Burns effect 效果,达到身临其境效果的 ImageView
    项目地址:https://github.com/flavioarfaria/KenBurnsView

  11. CustomShapeImageView
    各种形状的 ImageView, 相比上面的圆形 ImageView,多了更多形状
    项目地址:https://github.com/MostafaGazar/CustomShapeImageView
    效果图:Renderings

  12. Shape Image View
    可以自定义各种形状的 ImageView, 并且支持边框
    项目地址:https://github.com/siyamed/android-shape-imageview
    效果图:Renderings
    https://github.com/siyamed/android-shape-imageview/raw/master/images/all-samples.png

  13. TextDrawable
    一个用于生成带有文本或者字母的图片的轻量级库。扩展自 Drawable,因此可用于现有/自定义/网络等 ImageView 类,并且包含一个流接口用于创建 drawables 以及一个定制的 ColorGenerator
    项目地址:https://github.com/amulyakhare/TextDrawable
    效果图:Renderings

  14. android-smart-image-view
    可从 URL 或 contact address book 加载图片的 ImageView,支持缓存
    项目地址:https://github.com/loopj/android-smart-image-view

  15. PhotoView
    支持双指/双击缩放的ImageView,支持从一个PhotoView缩放到另外一个PhotoView(点击图片放大预览),相对于其他PhototView有更加平滑的缩放,平移的动画,并且支持所有的ScaleType,可以作为普通的ImageView使用
    项目地址:https://github.com/bm-x/PhotoView
    效果图:

  16. TextWithImageDrawable
    一个可以同时包含图片和文字的drawable,使用方式类似TextView和它的drawableLeft之类的方法,功能比较全面,可以代替TextView或是解决一些非得需要在ImageView中同时显示文字和图片的问题
    项目地址:https://github.com/wuseal/TextWithImageDrawable

  17. AnchorImageView
    一个可以锚点定位的ImageView(根据像素点)
    Demo中通过AnchorImageView简单的实现了一个课本点读的功能
    项目地址:https://github.com/jcodeing/AnchorImageView
    Demo 地址:Download here

posted @ 2023-03-20 15:15  张学涛  阅读(33)  评论(0编辑  收藏  举报