Home

Awesome

<img src="http://ww2.sinaimg.cn/large/005Xtdi2jw1f2jqaxc47fj3074074mxf.jpg" width=32 /> 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.utilsCommonAdapterListView万能适配器
com.sloop.adapter.utilsViewHolderViewHolder
com.sloop.animationRotate3dAnimation3D翻转动画
com.sloop.animationAnimationListener动画监听器默认实现类
com.sloop.animationAnimatorListener属性动画监听器默认实现类
com.sloop.async.utilsSHandler回调函数
com.sloop.io.utilsCloseUtils关闭函数
com.sloop.io.utilsFileUtils文件夹工具存储卡读取(READ_EXTERNAL_STORAGE) <br/> 存储卡写入(WRITE_EXTERNAL_STORAGE)
com.sloop.io.utilsStreamUtils数据流工具
com.sloop.net.utilsNetUtils网络相关工具网络访问(INTERNET) <br/> 查看网络状态(ACCESS_NETWORK_STATE)
com.sloop.utilsActivityUtilsActivity相关工具
com.sloop.utilsAppUtilsApplication相关工具
com.sloop.utilsDataCheck数据检查
com.sloop.utilsMathUtils数学工具
com.sloop.utilsToastUtilsToast工具
com.sloop.view.utilsDensityUtils屏幕密度相关工具
com.sloop.view.utilsViewUtils视图相关工具

版本更新:

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

About Me

<a href="https://github.com/GcsSloop/SloopBlog/blob/master/FINDME.md" target="_blank"> <img src="http://ww4.sinaimg.cn/large/005Xtdi2gw1f1qn89ihu3j315o0dwwjc.jpg" width=300 height=100 /> </a>

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.