英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论