使用手指将活动移至另一活动 [英] move activity to another activity using Finger

查看:74
本文介绍了使用手指将活动移至另一活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我希望在活动A中使用从左到右的手指移动应调用活动B.类似地,如果我从右向左移动它,则应返回到上一个活动,即活动A.

In my app, I want that using finger movement from left-to-right in Activity A should call Activity B. Similarly, if i move it right-to-left, it should go back to the previous Activity, i.e, Activity A.

如何实现?

推荐答案

好几种方法可以实现您正在谈论的内容.

Well there are several ways to achieve what you're talking about.

您可以使用手势生成器侦听轻扫,然后激发您的意图来开始活动.

You could use the gesture builder to listen for a swipe and then fire your intents to start the activity.

在不了解更多信息的情况下,您可能还想看一下页面查看器.

Without knowing more, you may also want to look at page viewer.

这篇关于使用手指将活动移至另一活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆