Android 一个灵活的图片 Gridview 布局

ImageGridView是一款用于Android平台的轻量级库,能够帮助开发者快速实现图片的网格布局显示。该库支持自定义图片加载器,如Picasso、Glide等,并提供了详细的使用示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ImageGridView

项目地址: fython/ImageGridView
简介:帮助你轻松的创建一个灵活的图片 Grid 布局
更多: 作者    提 Bug   
标签:
GridView- 图片-

Help you to create a flexible image grid easily.

帮助你轻松的创建一个灵活的图片 Grid 布局

中文说明(作者英文比较渣,建议国人直接阅读中文版)

 

How to use?

First, introduce the core library (:imagegridview Module) to your project.

Add the dependency:

dependencies {
    compile 'moe.feng.common.imagegridview:imagegridview:1.0'
}

It includes only ImageGridView, DefaultImageViewCreator and DefaultImageGridCalculator.

So you need introduce a image loader library or write by yourself.

If you want to use Picasso, you can choose PicassoImageLoader.

dependencies {
    compile 'moe.feng.common.imagegridview:picassoimageloader:1.0'
}

Besides, I also wrote GlideImageLoader, FrescoImageLoader for Glide/Fresco users.

Basic

In XML (For example) :

<moe.feng.common.imagegridview.ImageGridView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/image_grid_view"
    app:imageLoaderClass="moe.feng.common.imagegridview.loader.picasso.PicassoImageLoader"/>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值