i am developing an app which uses gestures,i have got the code from internet for gestures,studied it,that's not a problem.Its difficult to put in words so i m giving an e.g.

you all would have noticed how the home screen of the android devices work.when a user swipes left or right the background slides along with it and our view changes...i mean another activity is not launched,just the view slides...i just wanna know what kind of view is that??and can we implement it in our apps??

有帮助吗?

解决方案

The standard Launcher2 workspace is composed of a Workspace which extends SmoothPagedView which extends PagedView which extends ViewGroup which contains 5 workspace screen which are CellLayout extending ViewGroup. No ViewPager as somebody mentioned. See https://android.googlesource.com/platform/packages/apps/Launcher2/+/master

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top