android - NestedScrollView 实现复杂UI,事件冲突
PHP中文网
PHP中文网 2017-04-17 17:56:19
0
0
328

这是原型图,最外层是 CoordinatorLayout + AppBarLayout + CollapsingToolbarLayout + NestedScrollView 。
NestedScrollView 里面放的一个自定义ViewPager,我禁止了ViewPager的左右滑动事件。
我在Fragment 里面想的是一个 HORIZONTAL RecyclerView 嵌套一个 VERTICAL RecyclerView,

结果:最外层的 HORIZONTAL RecyclerView 可以左右滑动,但是不能上下滑动,NestedScrollView 也不能滑动了。希望各位能给我指点一下,感激不尽。

PHP中文网
PHP中文网

认证高级PHP讲师

répondre à tous(0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!