我应该如何在安卓上实现在滑动时切换活动?

huangapple go评论61阅读模式
英文:

How do i supposed to change activity on swipe write in android?

问题

抱歉,根据你的要求,我将只提供翻译好的部分,不包含额外的内容。

我想要在 Android 应用中像 Instagram 一样,在向右滑动时更改活动,以打开信息应用。

英文:

I want to change activity on swipe right as instagram does to open messanger in android app.

答案1

得分: 1

Instagram 是用 React Native 编写的,因此可能有一些无法在本地重新创建的内容。

在这里查看:https://stackoverflow.com/questions/9849138/android-pagerview-between-activities

英文:

Instagram is written in react native, so there might be some things that are impossible to recreate natively.

Take a look here https://stackoverflow.com/questions/9849138/android-pagerview-between-activities

答案2

得分: 0

请查看Fragments。您可以使用View pager或类似的方法来实现您想要的功能。

英文:

Have a look at Fragments. You can implement your intended functionality using View pager or something similar.

huangapple
  • 本文由 发表于 2020年4月10日 23:04:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/61143097.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定