Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.DragonsQC:QLibrary:{X.X.X}'
}
| Activity 相关类 | 说明 |
|---|---|
| BaseAppCompatActivity | 简单封装startActivity(),封装 StatusBar 相关方法 |
| BaseFragment | 简单封装startActivity() |
| 工具类 | 描述 |
|---|---|
| AnimationUtils | 动画工具类 |
| AppUtils | APP相关信息工具类 |
| CleanUtils | APP数据清除工具类 |
| DateUtils | 时间相关工具类 |
| DigestUtils | 摘要/加密解密工具类 |
| DoubleUtils | 小数(Double)计算精确工具类类 |
| FileUtils | 文件相关工具类 |
| ImageUtils | 图片相关工具类 |
| KeyboardUtils | Android 键盘工具类 |
| ListViewUtil | 动态设置嵌套 ListView 中高度 |
| MathUtils | 数字等公式相关工具类 |
| NetStateUtils | 网络状态工具类 |
| OSUtil | 设备系统工具类 |
| QLog | 日志工具类 |
| ResourceUtils | 资源相关工具类 |
| SPUtils | SharedPreferences 工具类 |
| StatusBarUtils | 状态栏相关工具类 |
| StringUtils | 字符串相关工具类 |
| SystemUtils | 系统/设备相关工具类 |
| ThreadManager | 线程管理 |
| ToastUtils | Toast 工具类 |
| VibratorUtils | 手机震动工具类 |
| 第三方库 | 说明 |
|---|---|
| 【Android Support for Androidx】 | |
| androidx.legacy:legacy-support-v4 | |
| androidx.appcompat:appcompat | |
| androidx.palette:palette | |
| androidx.cardview:cardview | |
| androidx.recyclerview:recyclerview | |
| androidx.annotation:annotation | |
| androidx.constraintlayout | |
| com.google.android.material:material | |
| com.trello.rxlifecycle3:rxlifecycle | |
| com.trello.rxlifecycle3:rxlifecycle-components | |
| androidx.lifecycle:lifecycle-compiler | |
| androidx.lifecycle:lifecycle-extensions | |
| 【Utils】 | |
| Commons Lang | |
| xLog | 已封装入 QLog |
| 沉浸式状态栏 StatusBarUtil | 已封装入 BaseAppCompatActivity,使用setStatusBarXXX方法调用 |
| 滑动返回 ParallaxBackLayout | 必须在 Application 初始化 registerActivityLifecycleCallbacks(ParallaxHelper.getInstance()); 详细说明 |
| xUtils3 | xUtils3 |
| 【HTTP】 | |
| Retrofit2 | |
| Retrofit2 converter-gson | |
| okhttp3 logging-interceptor | |
| Fastjson | |
| 【图片加载】 | |
| Glide | 需使用GlideApp时,自行添 annotationProcessor |
| 【Animation】 | |
| AndroidViewAnimations | |
| 【Widget】 | |
| CircleImageView | |
| Android-Bootstrap | |
| Android-KenBurnsView | |
| Material Dialogs | |
| Advanced RecyclerView |
| 资源文件 | 描述 |
|---|---|
| res/anim | 各种动画资源 |
| res/values/colors.xml | 官方 Material Design 各种颜色 |
| res/values/dimens.xml | 常用间距(dp)、文字大小(sp) |