MVVMLin:一个基于MVVM用Kotlin+Retrofit+协程+Databinding+LiveData来封装的快速开发框架

上传者: 42165712 | 上传时间: 2023-03-30 08:47:42 | 文件大小: 211KB | 文件类型: ZIP
MVVMLin 一个基于MVVM用Kotlin+Retrofit+协程+Databinding(ViewBinding)+LiveData来封装的快速开发框架: 项目地址: 框架简介 使用技术 基于MVVM模式用了 kotlin+协程+retrofit+livedata+DataBinding 基本封装 封装了BaseActivity、BaseFragment、BaseViewModel基于协和的网络请方式更加方便,考虑到有些小伙伴不太喜欢用DataBinding在xml中绑定数据的方式,也提供了相应的适配,两种方式自行选择。Retrofit2.6及以上版本提供了对协程的支持,使用起来更加方便,不用考虑类型的转换了。 特点 使用Rxjava 处理不好的话会有内存泄露的风险,我们会用使用AutoDispose、RxLifecycle等方式来处理,但是使用协程来请求数据,完全不用担心这个问题,

文件下载

资源详情

[{"title":"( 117 个子文件 211KB ) MVVMLin:一个基于MVVM用Kotlin+Retrofit+协程+Databinding+LiveData来封装的快速开发框架","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false},{"title":"HomeListBean.kt <span style='color:#111;'> 11.01KB </span>","children":null,"spread":false},{"title":"DefaultPrinter.kt <span style='color:#111;'> 8.84KB </span>","children":null,"spread":false},{"title":"LoggingInterceptor.kt <span style='color:#111;'> 8.55KB </span>","children":null,"spread":false},{"title":"BaseFragment.kt <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"BaseActivity.kt <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"BaseViewModel.kt <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"Deps.kt <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"ProjectViewModel.kt <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"HomeFragment.kt <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"MainActivity.kt <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"BannerBean.kt <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"ArticlesBean.kt <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"SingleLiveEvent.kt <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"HomeRepository.kt <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"DetailActivity.kt <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"FormatPrinter.kt <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"ExceptionHandle.kt <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"RetrofitClient.kt <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"ProjectFragment.kt <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"HomeService.kt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"MeFragment.kt <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"HomeListAdapter.kt <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"ViewModelFactory.kt <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"HomeViewModel.kt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"LinDatabase.kt <span style='color:#111;'> 940B </span>","children":null,"spread":false},{"title":"HomeDao.kt <span style='color:#111;'> 937B </span>","children":null,"spread":false},{"title":"BaseModel.kt <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"HomeNetWork.kt <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"MyWebView.kt <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"ERROR.kt <span style='color:#111;'> 711B </span>","children":null,"spread":false},{"title":"TabLayoutAdapter.kt <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"Extend.kt <span style='color:#111;'> 654B </span>","children":null,"spread":false},{"title":"MeViewModel.kt <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"MeWebAdapter.kt <span style='color:#111;'> 642B </span>","children":null,"spread":false},{"title":"MyApplication.kt <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"ResponseThrowable.kt <span style='color:#111;'> 631B </span>","children":null,"spread":false},{"title":"MIGRATION_1_2.kt <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"ExampleInstrumentedTest.kt <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"ArticlesTypeConverters.kt <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"BaseInterceptor.kt <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"GlideImageLoader.kt <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"ImageAdapter.kt <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"GlobalConfig.kt <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"BaseResult.kt <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"BaseApplication.kt <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"BuildConfig.kt <span style='color:#111;'> 358B </span>","children":null,"spread":false},{"title":"ExampleUnitTest.kt <span style='color:#111;'> 347B </span>","children":null,"spread":false},{"title":"InjectorUtil.kt <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"MVVMLin.kt <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"Message.kt <span style='color:#111;'> 246B </span>","children":null,"spread":false},{"title":"IBaseResponse.kt <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"Constant.kt <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"NoViewModel.kt <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"ViewModelExtend.kt <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"build.gradle.kts <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.89KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 14.78KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 10.17KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"tab_car_selected.png <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"tab_me_selected.png <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"tab_shop_selected.png <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"consumer-rules.pro <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 15.99KB </span>","children":null,"spread":false},{"title":"ic_launcher_background.xml <span style='color:#111;'> 4.77KB </span>","children":null,"spread":false},{"title":"Project.xml <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"item_project_list.xml <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"item_article_list.xml <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"project_fragment.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"item_usedweb.xml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"home_fragment.xml <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"custom_progress_dialog_view.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"me_fragment.xml <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明