android ImageView
-
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 -
Fresco-ImageView
Fresco-ImageView是一种Android平台的图像控件,底层是对Fresco的封装,可以异步加载网络图片、项目资源和本地图片,并且支持双指缩放、图片的基本处理以及Fresco的所有特性。
项目地址:https://github.com/HomHomLin/FrescoImageView -
android-gif-drawable
支持 gif 显示的 view,用 jni 实现的,编译生成 so 库后直接 xml 定义 view 即可,而且本身不依赖于其他开源项目所以相对下面的 ImageViewEx 简单的多
项目地址:https://github.com/koral--/android-gif-drawable -
ImageViewEx
支持 Gif 显示的 ImageView,依赖很多,编译过程很繁琐
项目地址:https://github.com/frapontillo/ImageViewEx
Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/imageviewex-demo.apk?raw=true -
RoundedImageView
带圆角的 ImageView
项目地址:https://github.com/vinc3m1/RoundedImageView
效果图: -
SelectableRoundedImageView
ImageView 允许四个角的每一个有不同的半径值。也允许椭圆形、圆形的形状或者边
项目地址:https://github.com/pungrue26/SelectableRoundedImageView
Demo 地址:https://play.google.com/store/apps/details?id=com.joooonho
效果图: -
ColorArt
根据图片的均色设置背景色显示文字和图片,类似 itune11 中效果
项目地址:https://github.com/MichaelEvans/ColorArt
Demo 地址:https://github.com/Trinea/TrineaDownload/blob/master/color-art-demo.apk?raw=true -
CircleImageView
圆形的 ImageView
项目地址:https://github.com/hdodenhof/CircleImageView
效果图: -
ImageViewZoom
支持放大和平移的 ImageView
项目地址:https://github.com/sephiroth74/ImageViewZoom
APP 示例:https://play.google.com/store/apps/details?id=com.aviary.android.feather -
KenBurnsView
实现 Ken Burns effect 效果,达到身临其境效果的 ImageView
项目地址:https://github.com/flavioarfaria/KenBurnsView -
CustomShapeImageView
各种形状的 ImageView, 相比上面的圆形 ImageView,多了更多形状
项目地址:https://github.com/MostafaGazar/CustomShapeImageView
效果图: -
Shape Image View
可以自定义各种形状的 ImageView, 并且支持边框
项目地址:https://github.com/siyamed/android-shape-imageview
效果图:
https://github.com/siyamed/android-shape-imageview/raw/master/images/all-samples.png -
TextDrawable
一个用于生成带有文本或者字母的图片的轻量级库。扩展自 Drawable,因此可用于现有/自定义/网络等 ImageView 类,并且包含一个流接口用于创建 drawables 以及一个定制的 ColorGenerator
项目地址:https://github.com/amulyakhare/TextDrawable
效果图: -
android-smart-image-view
可从 URL 或 contact address book 加载图片的 ImageView,支持缓存
项目地址:https://github.com/loopj/android-smart-image-view -
PhotoView
支持双指/双击缩放的ImageView,支持从一个PhotoView缩放到另外一个PhotoView(点击图片放大预览),相对于其他PhototView有更加平滑的缩放,平移的动画,并且支持所有的ScaleType,可以作为普通的ImageView使用
项目地址:https://github.com/bm-x/PhotoView
效果图: -
TextWithImageDrawable
一个可以同时包含图片和文字的drawable,使用方式类似TextView和它的drawableLeft之类的方法,功能比较全面,可以代替TextView或是解决一些非得需要在ImageView中同时显示文字和图片的问题
项目地址:https://github.com/wuseal/TextWithImageDrawable -
AnchorImageView
一个可以锚点定位的ImageView(根据像素点)
Demo中通过AnchorImageView简单的实现了一个课本点读的功能
项目地址:https://github.com/jcodeing/AnchorImageView
Demo 地址:Download here
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」