开发者

Android launcher home screen

开发者 https://www.devze.com 2023-01-16 19:57 出处:网络
In the android home screen, we have the ability to sli开发者_C百科de the screen left and right and display multiple pages. Each of these pages has a different set of icons. In the Mac world these woul

In the android home screen, we have the ability to sli开发者_C百科de the screen left and right and display multiple pages. Each of these pages has a different set of icons. In the Mac world these would be called "spaces". What are they called in the Android world?

More importantly is there a standard control that can be used to achieve this effect?


There is no such control to achieve this. Once I was digging through the Launcher's source code and this effect is done by creating few LinearLayouts and placing them side by side in the code. Sliding through the "spaces" is done by handlig touch events. Also the grid that handles widgets is created using aviable API.


Unfortunately, there isn't a standard control for that sliding effect.

This is another question about the effect which also contains a few pointers about implementing it.

0

精彩评论

暂无评论...
验证码 换一张
取 消