Git Product home page Git Product logo

androidmvvm's Introduction

AndroidMVVM

Android MVVM是一款基于MVVM框架,以Jetpack组件DataBinding+LiveData+ViewModel为基础,整合Retrofit+RxJava网络模块的快速开发框架。

框架流程

框架特点

  • Jetpack组件

    1. ViewBinding & DataBinding
    2. Lifecycles
    3. LiveData
    4. Navigation
    5. Paging
    6. Room
    7. ViewModel
  • 流行框架

    1. retrofit+okhttp+rxJava负责网络请求
    2. gson负责解析json数据
    3. glide负责加载图片;
  • 基类封装

    1. BaseActivity
    2. BaseFragment
    3. BaseViewModel
  • 全局操作

    1. 全局的Activity堆栈式管理
    2. LoggingInterceptor全局拦截网络请求日志
    3. 全局的异常捕获,程序发生异常时不会崩溃,返回上个界面。
    4. 使用androidx
    5. 不使用kotlin
  • Room组件

    1. 实现了Network only 和 Network & database 两种模式

    FollowersFragment 使用 Room 持久化存储列表数据,Network => DB => LiveData => RecyclerView

界面

1. 登录界面(使用任意账户登录)
2. 我的仓库列表
3. 我的star仓库列表
4. 我的following列表
5. 仓库详情
6. 用户详情

注意

1. 接口使用GitHub API v3,单IP限制每小时60次requests

androidmvvm's People

Contributors

ninja2005 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.