Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

weex里面每个单独的页面可以使用 navigator进行跳转。
如何实现左右滑进行页面跳转? 需要修改navigator的模块?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
693 views
Welcome To Ask or Share your Answers For Others

1 Answer

想到2个办法,都需要你有一定的原生开发基础
可以先参考一下 https://github.com/hanliuxin5... 的实现思路(正在努力试着写成weex plugin的形式...),然后在接着看

1 页面采用在<slider>里放置<controller>的方式来实现
2 需要较大幅度的修改原生代码,将原生Fragment的管理交给FragmentPagerAdapter或者FragmentStatePagerAdapter然后配合ViewPager来实现


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...