• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED] The MVP Architecture in the Android.

MvpArchitecture 2.x

MVP模式的模块化开发框架。

因为MVP满足不了我的开发体验,因此该项目已停止维护。
相比前者,我更喜欢MVVM架构中这次实践,它更趋近我理想中的设计,更加Reactive和Functional:

MVVM-Rhine:The MVVM Architecture in Android.

网络层:

HTTP : Rxjava2 + Retrofit2 + Okhttp3

ImageLoader:Glide v4

Cache: RxCache

数据处理层:

JavaBean: lombok

Java8:Stream + Lambda

Dependencies Injection: DaggerAndroid

UI层:

Views Binding: DataBinding

关于ButterKnife:2.x模块化开发尝试使用DataBinding代替ButterKnife,功能仅使用最简单的View绑定,类似Kotlin插件的效果,只需要通过b.viewId即可进行对View的操作

Layout:ConstraintLayout

其他三方库:

1.AutoDispose:Automatic binding+disposal of RxJava 2 streams.

关于AutoDispose在本项目中的应用,我偏向为项目中使用方式的展示,如果希望看到进阶优雅的使用方式,请参考本文档最下方的MVVM项目。

2.RxBinding:RxJava binding APIs for Android's UI widgets.
3.ARouter:An android router middleware that help app navigating to activities and custom services.

测试层:

AndroidTest: Espresso

UnitTest: Mockito + Robolectric

Modules

1.app: 最顶层的应用,通过组合不同的业务模块生成对应的App

2.module_x: 业务模块,比如搜索模块、用户信息模块、视频播放模块等

3.module_core:底部架构级模块,业务开发中很少修改的模块,包括各个三方库的依赖,各种BaseXXX类、Util类,以及底层级别的依赖注入配置等

4.module_business:不同业务模块间消息传递的模块,采用ARouter,比如搜索模块和用户信息模块界面之间数据的传递

More Repositories

1

MVVM-Architecture

The practice of MVVM + Jetpack architecture in Android.
Kotlin
1,831
star
2

RxImagePicker

🚀RxJava2 and RxJava3 external support. Android flexible picture selector, provides the support for theme of Zhihu and WeChat (灵活的Android图片选择器,提供了知乎和微信主题的支持).
Kotlin
1,199
star
3

blogs

📝 The Android programing blogs(简体中文).
1,035
star
4

RxWeaver

🐤 一种基于RxJava2实现全局Error处理的实现方式。
Kotlin
269
star
5

MVI-Architecture

The practice of MVI + Jetpack architecture in Android.
Kotlin
175
star
6

FlutterGitHubApp

Flutter开发跨平台Github客户端,适用于Android和iOS。
Dart
102
star
7

Sample_dagger2

The guide of the Dagger2 and dagger.android usage in Android.
Java
98
star
8

SamplePaging

Kotlin
69
star
9

QrCodeScannerView-Android

[Deprecated(已废弃)] The Library simple and easy for scanning QrCode
Java
67
star
10

SlideBottomLayout-Android

【已废弃】该Repo已废弃,请使用Android原生的BottomSheet实现该功能.
Java
50
star
11

MVVM-Rhine-Template

Code generation template for MVVM-Rhine.
FreeMarker
45
star
12

Samples-Android

日常案例的练手代码仓库
Java
42
star
13

OpenGL-demo

Kotlin
38
star
14

MvvmApp-Android

[DEPRECATED] Mvvm+DataBinding study demo
Java
30
star
15

MultiTypeBindings

[DEPRECATED]零代码实现RecyclerView的Adapter
Java
28
star
16

Sample_AndroidTest

The Sample that how to use the AndroidTest in developing. (Espresso+Mockito+Robolectric)
Java
27
star
17

SampleNavigation

Google官方架构组件Navigation使用Sample
Kotlin
26
star
18

ShanbayAutoReader

扇贝阅读app自动阅读脚本
Groovy
12
star
19

RxFamilyUsage-Android

Also is your family if you love rx
Java
8
star
20

NotificationUtil

兼容Android8.0的通知Util
Kotlin
8
star
21

MVI-Rhine-Template

Code generation template for MVI-Rhine.
FreeMarker
7
star
22

RxDialog

Deprecated(已废弃)
Kotlin
6
star
23

MaterialDesignPictures

MD风格的图片,收集起来以作他用。
4
star
24

DslViewPagerAdapter

A simple implementation of ViewPager.
Kotlin
3
star
25

RxSchedulers

[DEPRECATED] The schedulers tools for RxJava2 in Android.
Kotlin
3
star
26

HenCoderPractice

HenCoder自定义View学习练习题库
Kotlin
3
star
27

KodeinSample

依赖注入工具Kodein使用Sample
Kotlin
2
star
28

GroovyJourney

Groovy学习代码
Groovy
2
star
29

qingmei2-blogs-art

Using Github as my image hosting service.
2
star
30

SampleWorkManager

Kotlin
1
star
31

my-unity-study-demo

The Unity learning project.
C#
1
star
32

LeetCodeJourney

目标,让家里的《算法导论》不再吃灰
Java
1
star
33

Data-Structure

Data-Structure Practice
C
1
star
34

BasicRxJavaSampleKotlin

Google官方BasicRxJavaSampleKotlin的代码,照着写学习:
Kotlin
1
star