Google Plus Android App UI Design - ListView swipe

2019-06-11 02:48发布

Could someone please explain how Google implemented the "detail" page of their Google + app? The detail page features an image at the top (which can be tapped) and a ListView that is positioned roughly 50% down the screen.

Like so: Example

When you swipe up the ListView moves up to fill the entire screen: Example

After this, additional swipes control the listView up/down: Example

I've done my research but very little is available to suggest how they implemented this.

Thanks

1条回答
Explosion°爆炸
2楼-- · 2019-06-11 03:32

The short answer is that they're using various tricks for enabling the sliding menus. Tons of resources have been authored by folks in the Android community, most notably:

The easiest way to get the demo is to search for SlidingMenu Demos in the Play store. The specific controls of interest in the Demo are the "ViewPager" example and the "Slide" example.

When you look at the library, you'll notice that it pretty much rewrites significant pieces of the existing controls from View on up as well as custom transformations for a canvas element used in the view.

The sample that Jeremy authored, which really is an alternative library to existing ListView and Page controls, supports a large spectrum of Android devices as well as a number of UI controls that are slightly different variations of the examples you gave and that use varying transitions.

查看更多
登录 后发表回答