SUtil

License

Sloop的工具箱

作者微博: @GcsSloop

如何添加

Gradle

1.在Project的build.gradle 中添加仓库地址

 // JitPack仓库地址
 maven { url "https://jitpack.io" }

示例:

allprojects {
    repositories {
        jcenter()
        // JitPack仓库地址
        maven { url "https://jitpack.io" }
    }
}

2.在Module目录下的build.gradle中添加依赖

    //sutil
    compile 'com.github.GcsSloop:SUtil:v1.0.2'

示例:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.1'
    //sutil
    compile 'com.github.GcsSloop:SUtil:v1.0.1'
}

内容说明

包名 工具 描述 所需权限
com.sloop.adapter.utils CommonAdapter ListView万能适配器
com.sloop.adapter.utils ViewHolder ViewHolder
com.sloop.animation Rotate3dAnimation 3D翻转动画
com.sloop.animation AnimationListener 动画监听器默认实现类
com.sloop.animation AnimatorListener 属性动画监听器默认实现类
com.sloop.async.utils SHandler 回调函数
com.sloop.io.utils CloseUtils 关闭函数
com.sloop.io.utils FileUtils 文件夹工具 存储卡读取(READ_EXTERNAL_STORAGE)
存储卡写入(WRITE_EXTERNAL_STORAGE)
com.sloop.io.utils StreamUtils 数据流工具
com.sloop.net.utils NetUtils 网络相关工具 网络访问(INTERNET)
查看网络状态(ACCESS_NETWORK_STATE)
com.sloop.utils ActivityUtils Activity相关工具
com.sloop.utils AppUtils Application相关工具
com.sloop.utils DataCheck 数据检查
com.sloop.utils MathUtils 数学工具
com.sloop.utils ToastUtils Toast工具
com.sloop.view.utils DensityUtils 屏幕密度相关工具
com.sloop.view.utils ViewUtils 视图相关工具

版本更新:

版本号 更新内容
v1.0.2 为通用适配器增加追加数据功能,删除WiFiUtils,添加NetUtils
v1.0.1 降低minSdkVersion,提高兼容性
v1.0.0 从jCenter迁移到JitPack,以前版本作废

About Me

License

Copyright (c) 2016 GcsSloop

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.