GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vicky7230/Sunny: A weather app written in Kotlin with MVVM architecture.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
graphics
graphics
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

alt text

Sunny

License

A very simple app to show weather.

Featues

  1. Beautifully designed.
  2. Day and night theme based on time.
  3. Add up to 4 cities.
  4. Add widget to home screen



Get it on google play

The Model-View-ViewModel Pattern

The main components in the MVVM pattern are:

  • The View — that informs the ViewModel about the user’s actions
  • The ViewModel — exposes streams of data relevant to the View
  • The DataModel — abstracts the data source. The ViewModel works with the DataModel to get and save the data.

MVVM pattern was created to simplify the event driven programming of user interfaces.

In MVVM, ViewModel exposes streams of events to which the Views can bind to. Because of this, the ViewModel does not need to hold a reference to the View anymore. This also means that all the interfaces that the MVP pattern requires, are now dropped. View has a reference to ViewModel but ViewModel has no information about the View. The consumer of the data should know about the producer, but the producer — the ViewModel — doesn’t know, and doesn’t care, who consumes the data.

Libraries used:

  1. Android-Iconics : https://github.com/mikepenz/Android-Iconics
  2. html-textview: https://github.com/SufficientlySecure/html-textview
  3. Android-Debug-Database: https://github.com/amitshekhariitbhu/Android-Debug-Database
  4. EventBus: https://github.com/greenrobot/EventBus
  5. Google Play Location Services: https://developers.google.com/android/guides/setup
  6. Rxjava2 : https://github.com/ReactiveX/RxJava
  7. RxAndroid : https://github.com/ReactiveX/RxAndroid
  8. timber : https://github.com/JakeWharton/timber
  9. Room : https://developer.android.com/training/data-storage/room/index.html
  10. dagger2 : https://github.com/google/dagger
  11. retrofit2 : https://github.com/square/retrofit
  12. ViewModel : https://developer.android.com/jetpack/androidx/releases/lifecycle
  13. Material Components for Android : https://material.io/develop/android/docs/getting-started/
  14. AndroidX : https://developer.android.com/jetpack/androidx
  15. ConstraintLayout : https://developer.android.com/training/constraint-layout

License

   Copyright (C) 2019 VIPIN KUMAR

   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.

About

A weather app written in Kotlin with MVVM architecture.

Topics

dagger2-androidkotlinmvvm-androidplay-services-locationretrofit2room-persistence-libraryrxjava2viewmodel

Resources

Readme
Activity

Stars

7 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.