문제

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