Skip to content

chichaykin/Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather

This sample projects demonstrates how to:

  • Show 5 days forecast. It uses openweathermap.org
  • Installed predefined cities Dublin, London, New York and Barcelona with ability add/remove locations.
  • Show weather for current location - uses GPS to get current location
  • Cache network request and pictures of weather icons.

It uses following:

  • Material design pattern - CoordinatorLayout, FloatButton, CardView, ToolBar, RecyclerView.
  • Retrofit/Okhttp for REST communication with authorization.
  • GSON for mapping JSON answer to Java POJO's.
  • RxAndroid for subscription to support MVP pattern and easy testing and maintaining.
  • DBFlow for easy persisting user locations.
  • ButterKnife for easy view binding
  • EasyAdapter to avoid writing adapter for recyclerview and use ItemViewHolder pattern.
  • Picasso for weather icon downloading, caching and resizing.
  • Robolectric for quick testing.

TODO:

  1. Add MainActivity test (espresso).
  2. Support time formatting (am/pm).
  3. Add layout for landscape mode to show more info for current weather.
  4. Add Dagger to test observables.
  5. Add SwipeRefreshLayout instead of ProgressBar and may be remove float button.
  6. Support release - add signing.

About

project for fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages