Coder Social home page Coder Social logo

kotlin_android_base_framework's Introduction

Related articles

http://zhuanlan.zhihu.com/kotandroid/20313799

Description

这是一个采用 MVP 模式进行设计的 Android DEMO Application。它使用 kotlin 和 java 混合构建。

它的一个包结构(Package structure)如下:

com.nekocode.baseframework
├─ data
│  ├─ net
│  └─ local
│ 
├─ presenter
│ 
├─ ui
│  ├─ activity
│  ├─ adapter
│  ├─ fragment
│  └─ view
│ 
├─ utils
│ 
├─ App.kt
└─ Config.kt

它包含的几个层次:

  • **Data Layer:**非传统意义的 Model 层,包含 beanrepo。其中 repo 包含 net repolocal repo 等仓库,用于从不同途径获取数据。
  • **View Layer:**视图层,包括各种 activityadapterfragmentview。只关注与用户交互,以及视图操作(动画、界面输出、更新等)。
  • Presenter Layer:程序逻辑层。将业务逻辑从 Activity、Fragment 中剥离并抽象成 Presenter 。负责「View 与 Model 层之间的控制与交互」

Kotlin

  • kotlin version: 1.0.0-beta-2423

Libraries

  • anko: 0.7.2
  • rxkotlin: 0.24.100
  • retrofit: 2.0.0-beta1
  • picasso: 2.5.2
  • hawk: 1.20

kotlin_android_base_framework's People

Contributors

fostion avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.