Skip to content

smilelyj/weatherapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

A weather app illustrating several Android development best practices with Android Jetpack.

The app will consist of one screen. On this screen, the app will display a zip code (chosen and hard-coded by you, which is 94538 Fremont, CA), as well as details of the current weather for that zip code. The details will include: City, State, General Description, Current Temperature and Icon

Introduction

Android Jetpack is a set of components, tools and guidance to make great Android apps. They bring together the existing Support Library and Architecture Components and arrange them into four categories:

Android Jetpack

Getting Started

This project uses the Gradle build system.

For more resources on learning Android development, visit the Developer Guides at developer.android.com.

Screenshots

HomeScreen

Libraries Used

  • Architecture - A collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.
    • Data Binding - Declaratively bind observable data to UI elements.
    • Lifecycles - Create a UI that automatically responds to lifecycle events.
    • LiveData - Build data objects that notify views when the underlying database changes.
    • Navigation - Handle everything needed for in-app navigation.
    • ViewModel - Store UI-related data that isn't destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.
  • Third party
    • Glide for image loading
    • Kotlin Coroutines for managing background threads with simplified code and reducing needs for callbacks

Future work

  1. Add Room database for offline experience
  2. Add Repository pattern
  3. Add an edittext to query any place by zipcode

Android Studio IDE setup

For development, the latest version of Android Studio is required. The latest version can be downloaded from here.

About

A sample weather app using Kotlin + MVVM + LiveData + Coroutines + Moshi + Retrofit2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages