Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vicent9920/BaseProject

Repository files navigation

此项目是在轮子哥的模板工程上进行重构的,初衷是为了删除一些自己不熟悉的框架而添加一些自己熟悉的框架,并且使用 androidX、jetpack、Kotlin,完成一个自己用起来顺手的模板工程。这也符合其开源初衷:

当我们日复一日年复一年的搬砖的时候,你是否曾想过提升一下开发效率,如果一个模板的项目摆在你的面前,你还会选择自己搭架构么

一、功能简介:

  • 登录模块使用 MVVM 框架实现,首页通过 Navigation 来实现 Fragment 控制
  • WebActivity 增加 WebView 下载文件功能
  • 首页增加城市选择,城市选择数据查看:所有城市。如果需要自定义数据,请阅读CityPicker 自定义数据源
  • 首页增加扫一扫功能,并对扫一扫结果通过 WebActivity 展示
  • 通过多网络 API 对全部网络提醒(非传统的广播)使用说明
  • Activity 基类、 Fragment 基类封装以及部分自定义 View 编写等
  • 添加自定义圆弧View

下载地址

下载地址

一、项目截图:

首页 发现 消息 我的 设置 选择城市 扫一扫 扫描结果 版本检测 Apk文件下载 安装提示 网络异常 选择年月日 圆角View 圆角View 圆角View 空布局测试

三、集成框架:

// ViewModel and LiveData

api "androidx.lifecycle:lifecycle-extensions:$rootProject.ext.lifecycle_version"

// For Kotlin use navigation-fragment-ktx

implementation "android.arch.navigation:navigation-fragment:$rootProject.ext.nav_version"

// For Kotlin use navigation-ui-ktx

implementation "android.arch.navigation:navigation-ui:$rootProject.ext.nav_version"

// RecyclerView

api "androidx.recyclerview:recyclerview:$rootProject.ext.recyclerview"

Retrofit 网络

implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit"

Gson 解析

implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.gson"

Glide 图片加载

implementation "com.github.bumptech.glide:glide:$rootProject.ext.glide"

annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.ext.glide"

//城市选择 https://github.com/zaaach/CityPicker

implementation "com.zaaach:citypicker:$rootProject.ext.citypicker"

// 仿魅族banner https://github.com/pinguo-zhouwei/MZBannerView

implementation "com.github.pinguo-zhouwei:MZBannerView:$rootProject.ext.mzBanner"

// Easy 工具类 https://github.com/yjfnypeu/EasyAndroid

api "com.github.yjfnypeu:EasyAndroid:$rootProject.ext.EasyAndroid"

// 屏幕适配 https://github.com/JessYanCoding/AndroidAutoSize

api "me.jessyan:autosize:$rootProject.ext.autosize"

// Adapter https://github.com/CymChad/BaseRecyclerViewAdapterHelper

api "com.github.CymChad:BaseRecyclerViewAdapterHelper:$rootProject.ext.BaseRecyclerViewAdapterHelper"

// 沉浸式状态栏颜色 https://github.com/laobie/StatusBarUtil

implementation "com.jaeger.statusbarutil:library:$rootProject.ext.statusbarutil"

// 界面侧滑 https://github.com/bingoogolapple/BGASwipeBackLayout-Android

implementation "cn.bingoogolapple:bga-swipebacklayout:$rootProject.ext.swipebacklayout"

// 键对值存储器 https://github.com/orhanobut/hawk

implementation "com.orhanobut:hawk:$rootProject.ext.hawk"

// 版本更新 https://github.com/yjfnypeu/UpdatePlugin

implementation "com.github.yjfnypeu:UpdatePlugin:$rootProject.ext.updatePlugin"

//城市选择 https://github.com/zaaach/CityPicker

implementation "com.zaaach:citypicker:$rootProject.ext.citypicker"

// 扫一扫 https://github.com/mylhyl/Android-Zxing

implementation "com.mylhyl:zxingscanner:$rootProject.ext.zxing"

四、联系方式:

  1. 邮箱:weixing9920@163.com
  2. 博客:https://juejin.im/user/593def80fe88c2006a2707df/posts

About

项目模板

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /