当前位置: 首页 > 软件库 > 手机/移动开发 > >

android-mvvm-architecture

授权协议 Apache-2.0 License
开发语言 Java
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 徐卓
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Android MVVM Architecture: Sample App

UPDATE: Check this for updated project

This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava, FastAndroidNetworking, PlaceHolderView and AndroidDebugDatabase




The app has following packages:

  1. data: It contains all the data accessing and manipulating components.
  2. di: Dependency providing classes using Dagger2.
  3. ui: View classes along with their corresponding ViewModel.
  4. utils: Utility classes.

Classes have been designed in such a way that it could be inherited and maximize the code reuse.

Library reference resources:

  1. RxJava2: https://github.com/amitshekhariitbhu/RxJava2-Android-Samples
  2. Dagger2: https://github.com/MindorksOpenSource/android-dagger2-example
  3. FastAndroidNetworking: https://github.com/amitshekhariitbhu/Fast-Android-Networking
  4. PlaceHolderView: https://github.com/janishar/PlaceHolderView
  5. AndroidDebugDatabase: https://github.com/amitshekhariitbhu/Android-Debug-Database
  6. Calligraphy: https://github.com/chrisjenx/Calligraphy
  7. Room: https://developer.android.com/topic/libraries/architecture/room.html

Concept reference resources:

  1. Introduction to Dagger 2: Part 1
  2. Introduction to Dagger 2: Part 2
  3. Android Dagger2: Critical things to know before you implement
  4. The Best Android Networking Library for Fast and Easy Networking
  5. RxJava + Fast Android Networking
  6. Migrating from RxJava 1.0 to RxJava 2.0 and Learn RxJava by Examples
  7. Android Tinder Swipe View Example
  8. Debugging Android Databases And Shared Preferences In The Easiest Way

Looking for Kotlin MVP Architecture - Check here

Looking for MVP Architecture - Check here

Looking for MVVM Architecture for Beginners - Check here

Learn to build a ride-sharing Android app like Uber, Lyft - Check here

Check out Mindorks awesome open source projects here

License

   Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to Android MVVM Architecture

Just make pull request. You are in!

  • 首先感谢 JessYan 开源的 MVPArms,学到了很多知识,也方便了公司项目的开发! 在 Google I/O 2017 大会上,Google 推出了新的组件库 - Android Architecture Components,官方文档做的很详细,分别介绍了各个组件的应用场景和使用方式,这无疑会推进 Android MVVM 模式的发展。关于 MVVM 这里不做过多介绍,如果有需要可以自行

 相关资料
  • Model-View-ViewModel (ie MVVM) Model-View-ViewModel (ie MVVM) is a template of a client application architecture, proposed by John Gossman as an alternative to MVC and MVP patterns when using Data Bin

  • FlyTour是Android MVVM+MVP+Dagger2+Retrofit+RxJava+组件化+插件组成的双编码架构+双工程架构+双语言Android应用开发框架,通过不断的升级迭代该框架已经有了十个不同的版本,5.0之前工程架构采用gradle配置实现组件化,5.0之后的工程架构采用VirtualAPK实现了插件化,5.0之前采用Java编码实现,5.0之后采用Kotlin编码实现,编

  • 我在我的应用程序中使用Android Arch组件和MVVM架构。 模型层和存储库类决定并提供数据给viewmodel,然后再提供给view层。 如果activity要使用的数据既不是来自网络,也不是来自数据库,而是来自之前的activity的意图呢?在这种情况下你遵循什么模式?

  • Model-View-ViewModel (MVVM)是用于开发软件应用程序的架构设计模式。 MVVM由Microsoft Architect John Gossman于2005年开发。该模式源自模型 - 视图 - 控制器(MVC)模式。 MVVM的优势在于它将应用程序层的图形用户界面与业务逻辑分开。 MVVM负责处理来自底层模型的数据,以便非常容易地表示和管理它。 MVVM中的ViewModel

  • MVVM-Architecture Android端 MVVM + Jetpack 架构组件的Github客户端。 English Document | 中文文档 通知 这个项目采用了数种 MVVM 的实现方式,你可以参考任意感兴趣的进行了解: Jetpack + Coroutine + Dagger-Hilt Jetpack + Coroutine + Kodein Jetpack + RxJa

  • MVVM(Model View ViewModel)是一种基于MVC和MVP的架构模式,它试图将用户界面(UI)从业务逻辑和行为中更加清晰地分离出来。为了这个目的,很多例子使用声明变量绑定来把View层的工作从其他层分离出来。 这促进了UI和开发工作在同一代码库中的同步进行。UI开发者用他们的文档标记(HTML)绑定到ViewModel,在这个地方Model和ViewModel由负责逻辑的开发人员