plain-dev / NineGridImageView

一个用来显示九宫格图片的控件,常用于动态列表等

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

九宫格图片视图

九宫格图片视图

一个用来显示九宫格图片的控件,常用于动态列表等

当前状态:开发中

预览 🔎

preview

使用 ⚡

TODO

mikaelzero/mojito 结合使用

mojito 是一个图片浏览控件,可以非常方便的实现微信哔哩哔哩的效果

查看示例
ImageAdapter(data, object : OnImageItemClickListener {
    override fun onClick(
        nineGridView: NineGridImageView,
        imageView: ImageView,
        url: String,
        urlList: List<String>,
        externalPosition: Int,
        position: Int
    ) {
        Mojito.start(imageView.context) {
            urls(urlList)
            position(position)
            progressLoader {
                DefaultPercentProgress()
            }
            setIndicator(NumIndicator())
            views(nineGridView.getImageViews().toTypedArray())
        }
    }
})

声明 📄

本项目采用的图片资源来自以下网站

感谢 ❤

特别感谢 liangchaojie/NineGridLayout

LICENSE ⚖

MIT License
MIT License

Copyright (c) 2021 Plain

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

一个用来显示九宫格图片的控件,常用于动态列表等

License:MIT License


Languages

Language:Kotlin 74.8%Language:Java 25.2%