Skip to content

myofficework000/Weather-Widget-Demo

Repository files navigation

Weather-Widget

Sinple Weather Widget

About Weather-Widget

Weather-Widget is a sample android application 📱to search weather using https://openweathermap.org/ which is built to demonstrate use of Modern Android development tools. It has been built using kotlin with clean architecture principles and MVP pattern as well as Architecture Components. Dedicated to all Android Developers with ❤️.

About

The app is for getting weather info of any city on the basis of city name or zipcode. It will show your weather forecast, current weather details and also discplay the AIR Qiality Index on various factors.

Sailent Features:

  • Search the city by name or zipcode
  • Get the Weather details
  • Get the Weather forcast for next 5 days.
  • Get the Air Quality Index with various factor

📸 Screenshots

Please click the image below to enlarge.

Built With 🛠

  • Kotlin - First class and official programming language for Android development.
  • Volley - For Networking
  • GSON - A Java serialization/deserialization library to convert Java Objects into JSON and back.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.

Package Structure

com.example.weatherwidget   # Root Package
.
├── data                # For data handling.
│   ├── model           # Model classes
│   ├── network         # Remote Data Handlers     
|   │   ├── api         # Volley API for remote end point.
│   
|
|
├── ui                  # Activity/View layer
│   ├── main            # Main Screen Activity & ViewModel
                        # Fragments for views
|   │ 
|   │    
|
└── utils               # Utility Classes / Kotlin extensions

Architecture

This app uses MVP architecture. MVP

Contact - Let's become friend

Don't forget to star ⭐ the repo it motivates me to share more open source