栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

BaseLibrary根模块,包含一些常用工具类与基类

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

BaseLibrary根模块,包含一些常用工具类与基类

baseLibrary

根模块,包含一些常用工具类与基类
GitHub仓库地址

引入 maven

		
		    jitpack.io
		    https://jitpack.io
		



	    com.github.duoluo9
	    baseLibrary
	    1.1.20

gradle
allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

implementation 'com.github.duoluo9:baseLibrary:1.1.20'
//库所使用的三方
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.alibaba:fastjson:1.2.70'

implementation  'com.scwang.smart:refresh-layout-kernel:2.0.3'      //核心必须依赖
implementation  'com.scwang.smart:refresh-header-classics:2.0.3'    //经典刷新头
implementation  'com.scwang.smart:refresh-footer-classics:2.0.3'    //经典加载

implementation 'com.github.duoluo9:ImagePicker:1.1.7'
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
部分工具功能 MVP工具包(com/zhangteng/base/mvp/base、com/zhangteng/base/base)
工具包名/类名描述
IModelM层接口
IViewV层接口
IPresenterP层接口
baseModelM层空实现
baseLoadingViewV层带加载中方法的接口
baseNoNetworkViewV层带网络状态方法的接口,继承自baseLoadingView
baseRefreshViewV层带刷新方法的接口,继承自baseNoNetworkView
basePresenterP层实现,实现了attachView、detachView、onDestroy等方法
baseLoadingPresenterP层加载中动画实现,增加了getbaseLoadingView()方法
baseHttpEntitymodel到presenter的回调
LoadingPresenterHandler使用代理的方式自动调用加载动画开启与关闭方法,同步执行方法时才有意义(好像没啥用…)
baseMvpFragment使用Mvp模式Fragment基类(可使用插件自动创建Fragment。插件仓库地址)
baseListMvpFragment使用Mvp模式列表Fragment基类
baseMvpActivity使用Mvp模式Activity基类(可使用插件自动创建Activity。插件仓库地址)
baseListMvpActivity使用Mvp模式列表Activity基类
九宫格图片工具包(com/zhangteng/base/adapter、com/zhangteng/base/widget)
工具包名/类名描述
PublishAdapter发布九宫格选择图片视频文件;已实现拖曳;已实现的默认图片视频逻辑,需要配合ImagePicker使用;请配合 [com.zhangteng.base.widget.GridSpacingItemDecoration][com.zhangteng.base.widget.LinearSpacingItemDecoration]调整间距
NineGridViewAdapter九宫格图片展示
NineGridViewClickAdapter实现点击事件的九宫格图片预览
ImagePreviewAdapter图片预览
ImagePreviewActivity大图预览页面
NineGridView九宫格view(使用方式参照demo中NineImageActivity)
NineGridViewWrapper九宫格ImageView
多级展开树形列表(com/zhangteng/base/tree、com/zhangteng/base/adapter)
工具包名/类名描述
TreeRecyclerViewAdapter树结构的列表适配器(使用方式参照demo中TreeActivity)
Node树数据节点,实际数据bean自动通过注解方式转换为node
TreeHelper树数据与注解处理类
TreeNodeChildren子节点注解
TreeNodeId节点id注解
TreeNodeLabel节点name注解
TreeNodeParent父节点注解
混淆

-keep public class com.zhangteng.**.*{ *; }

历史版本
版本更新更新时间
v1.1.20增加九宫格图片展示2021/9/5 at 16:51
v1.1.19星型进度条(使用固定星型)、树形结构demo,父节点不需要赋值(自动处理)2021/8/31 at 14:44
v1.1.17TabLayout 滑动ViewPager切换时tab字体错乱问题2021/8/26 at 17:48
v1.1.16增加加载中动画bug2021/8/25 at 17:40
v1.1.15MyTabLayout中tab可自定义2021/8/24 at 23:01
v1.1.13增加沉浸式主题2021/8/24 at 17:58
v1.1.12增加加载中动画类型,并支持自定义2021/8/23 at 13:01
v1.1.11增加list基类2021/8/17 at 23:11
v1.1.101、加载中动画增加同步注解,不允许多线程;2、加载中动画及空页面处理,并加入base类2021/8/15 at 11:20
v1.1.9增加popupwindow动画2021/8/13 at 23:31
v1.1.8LoadViewHelper showProgressDialog bug2021/8/5 at 22:07
v1.1.7重命名LoadViewHelper方法2021/7/15 at 16:00
v1.1.6fragment增加mvp基类2021/7/3 at 10:37
v1.1.5baseLibrary的类全部open2021/6/17 at 22:35
v1.1.4mvp模式presenter增加Model泛型&model增加imodel2021/5/17 at 18:38
v1.1.3Mvp模板及demo、弹窗宽度由内容宽度决定2021/4/19 at 16:11
v1.1.2baseAdapter优化增加默认ViewHolder2020/12/2 at 14:02
v1.1.1baseHttpEntity增加请求中动画自动加载2020/11/2 at 16:35
v1.1.0迁移到androidx2020/7/22 at 11:03
v1.0.5baseHttpEntity增加请求中动画自动加载2020/11/2 at 16:35
v1.0.4TabLayout指示器添加距底部距离自适应属性2020/6/24 at 17:31
v1.0.3更新几个工具类2020/6/19 at 11:46
v1.0.2指示器自适应时只有mTabIndicatorBottomLayer为true才会自适应距底部高度2020/6/12 at 15:14
v1.0.1无数据工具bug、增加圆角控件、文件工具类-视频判断bug2020/6/12 at 11:56
v1.0.0初版2020/6/4 at 18:05
赞赏

如果您喜欢baseLibrary,或感觉baseLibrary帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢

联系我

邮箱:763263311@qq.com/ztxiaoran@foxmail.com

License

Copyright © [2020] [Swing]

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.

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/315356.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号