[英]How can i achieve a viewpager for a certain portion of my screen?
I want to achieve a horizontal scroll view for a linear layout.我想实现线性布局的水平滚动视图。 I thought of doing this using viewpager but i am not able to figure out how?我想用 viewpager 来做这个,但我不知道怎么做?
You need to take 2 FrameLayouts inside your parent linear layout and inside of the frame layout add your view pager.您需要在父线性布局内使用 2 个 FrameLayouts,并在框架布局内添加您的视图寻呼机。 Something like below,像下面这样的东西,
<FrameLayout>
<ViewPager/>
</FrameLayout>
<FrameLayout>
<ViewPager/>
</FrameLayout>
</LinearLayout>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.