Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 android 中的一种表单有更多详细信息。由于设计限制,我不想添加滚动视图。现在我想在滑动时加载视图(单个表单中总共有 5 页)。实现这一目标的最佳选择是什么?采用一种 xml 布局并在滑动时隐藏/显示不同的视图?
我认为ViewPager会是最好的。它也可用于兼容性包以实现向后兼容性。
检查这个android viewpager implementation