Since Kotlin became the son of Google’s father, it has become more and more popular, as an Android developer how can not Kotlin, that would be behind, so I learned while beating a Kotlin dry client to share with you, any shortcomings or suggestions are welcome.
Some third-party libraries used in the project
/ / Retroit related packages compile 'com. Squareup. Retrofit2: retrofit: 2.3.0' compile 'com. Squareup. Retrofit2: converter - gson: 2.3.0' The compile 'com. Squareup. Retrofit2: adapter - rxjava2:2.3.0' / / Rxjava related packages compile 'IO. Reactivex. Rxjava2: Rxjava: 2.1.0' compile 'IO. Reactivex. Rxjava2: rxandroid: 2.0.1' / / Retrofit life cycle management framework the compile 'com. Trello. Rxlifecycle2: rxlifecycle - kotlin: 2.1.0' The compile 'com. Trello. Rxlifecycle2: rxlifecycle - android - lifecycle - kotlin: 2.1.0' compile 'com. Trello. Rxlifecycle2: rxlifecycle - components: 2.1.0' / / based on the compile rxjava 6.0 permission request frame 'com. Tbruyelle. Rxpermissions2: rxpermissions: 0.9.4 @ aar'/framework/dropdown to refresh the compile 'in. Srain. Cube: ultra - PTR: 1.0.11'/load/picture frame The compile 'com. Making. Bumptech. Glide: glide: 4.0.0 - RC0'/library/picture to see the compile 'com. Making. Chrisbanes: PhotoView: 2.1.2'
Copy the code
Some of the knowledge applied to the project
- Kotlin
- MVP + Retrofit + RxJava
- RecycleView waterfalls flow
- M D style
- Sorry, I can’t make it up…..
Project screenshots
Thank you
- Data source: Dry goods concentration camp
- Nuggets client, yes I am borrowed (Chao) kam (XI) part of the UI
- And of course the Big guy’s Kotlin Chinese site
- Thanks to all the open source bigwigs
- And thanks for what?