开发者

Swiping side to side to switch layouts?

开发者 https://www.devze.com 2023-03-08 02:59 出处:网络
How can I have a layout were when you swipe your finger to the left it goes to another layout or activity?

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

精彩评论

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