Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Yahoo Weather App Horizontal Scroll-view Effect?

Tags:

java

android

I would like to know what the Android implementation is of this type of scrolling that you see in the Yahoo Weather App. Here is a video example:

http://www.youtube.com/watch?v=a-q_yetkpik

Any examples or ideas on how to implement this would sincerely help this poor lost soul!

Thank you

like image 247
deadlock Avatar asked Apr 22 '14 19:04

deadlock


People also ask

How good is the Yahoo weather app?

Yahoo Weather (iOS|Android) is a weather app that displays stunning Flickr photos as a backdrop to a wide range of weather information on your phone. There are certainly other options with more weather information, but for a quick look at what's happening in your area, Yahoo Weather is a good-looking and well-made app.

Does Yahoo weather have a widget?

There are three different widgets, with a 2x2 box joining the standard 4x2 banner and 1x1 button most weather apps use. The larger two widgets can be modified to show extended forecasts, severe weather advisories, and more. However, all of the features make Yahoo! Weather a battery hog, even among other weather apps.


3 Answers

use that library https://github.com/xgc1986/ParallaxPagerLibrary, it's very easy to use, and it worked for me

demo

like image 51
xgc1986 Avatar answered Nov 08 '22 20:11

xgc1986


You should separate two different things here:

The horizontal scrolling
As you swipe your way through the viewpager, the background moves slower than the content does. This effect can be achieved with the ParallaxPagerLibrary

The vertical scrolling
As you swipe up, the background image blurs away, making the "swiped up" content more visible to the user. This post explains it all and also provides a library.

But if you want it even better, someone wrote a simple "clone" of this weather app https://github.com/MoshDev/LikeYahooWeather

like image 44
Mdlc Avatar answered Nov 08 '22 22:11

Mdlc


They customized ViewPager, the widget is called WeatherViewPager that it's unfortunately unavailable, looks like a ViewPager with a sort of parallax

You may take a look at https://play.google.com/store/apps/details?id=com.desarrollodroide.repos

it's a collection of usable opensource libraries

e.g. Utils->Paralloid or Utils->ParallaxScroll

like image 21
sherpya Avatar answered Nov 08 '22 22:11

sherpya