GithubHelp home page GithubHelp logo

thasneemp / mvvmkotlinbase Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22.02 MB

Wrapper for mvvm architecture written in Kotlin

Kotlin 0.91% Java 99.09%
android mvvm-architecture kotlin-android mvvm-kotlin

mvvmkotlinbase's Introduction

Download

MVVM Base Library written in Kotlin

The MVVM design pattern is similar to the well known MVC pattern in that the M (Model) and V (View) are relatively the same. The only difference resides between the C (Controller) and the VM (View Model).

This library is providing some base functionality of MVVM architecture and DataBinding.

  • Model

    Represents the Data + State + Business logic. It is not tied to the view nor to the controller, which makes it reusable in many contexts.

  • View

    Binds to observable variables and actions exposed by the View Model. It is possible for multiple views to bind to a single View Model.

  • ViewModel

    Responsible for wrapping the model and preparing observable data needed by the view. It also provides hooks for the view to pass events to the model. An important thing to keep in mind is that the View Model is not tied to the view.

  • Data Binding

    Introduced in Google I/O 2015, the Data Binding library helps write declarative layouts and minimize the glue code necessary to bind application logic and layouts.

Dependency

Firstly, add repository in your root build.gradle file (not your module build.gradle file):

repositories {
    jcenter()
}

Add dependency to your module's build.gradle file:

dependencies {
    implementation 'com.mhdthasneemp.mvvmbase:MVVMK-BASE:1.0'
}

Refrence

https://github.com/MindorksOpenSource/android-mvvm-architecture

License

Copyright 2018 Muhammed Thasneem P

   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.

mvvmkotlinbase's People

Contributors

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