开发者

Swiping side to side to switch layouts?

How can I have a layout were when you swipe your finger to the left it goes to another layout or activity?

-EXAMPLE-

 {layout 1}         {layout 2 (default)}
                      User SWIPES left
                           <---

                     [moves to Layo开发者_Go百科ut 1]


Though I think your example is counter-intuitive (I would expect that the User should swipe right to move to layout 1, unless it's cycling through the layouts), there's a few libraries which provide this functionality, most of which based on the Android Homescreen, which uses the idea of workspaces. See this question:

Developing an Android Homescreen

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜