alibaba / UltraViewPager

UltraViewPager is an extension for ViewPager to provide multiple features in a single ViewPager.
MIT License
5k stars 680 forks source link

setHGap会导致setMultiScreen 一屏多页 无效,求解 #77

Open benteyCode opened 6 years ago

frogprinces commented 6 years ago

遇到同样问题,请问找到解决方法了吗?

benteyCode commented 6 years ago

你可以设置item的间距,目前我是这样解决的

                                邮箱:893381563@qq.com

签名由 网易邮箱大师 定制 在2018年01月22日 15:13,frogprince 写道: 遇到同样问题,请问找到解决方法了吗?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/alibaba/UltraViewPager","title":"alibaba/UltraViewPager","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/alibaba/UltraViewPager"}},"updates":{"snippets":[{"icon":"PERSON","message":"@frogprinces in #77: 遇到同样问题,请问找到解决方法了吗?"}],"action":{"name":"View Issue","url":"https://github.com/alibaba/UltraViewPager/issues/77#issuecomment-359342200"}}}

pys200603027 commented 6 years ago

具体指的是啥,我设置item的margin不管用

MikeAfc commented 6 years ago

@pys200603027 可以在你的每一页view里面留间距

huashengzzz commented 6 years ago

@pys200603027 可以在你的每一页view里面留间距 setMultiScreen后默认间距已经很大了,在设置更大,我想变小,而且能展示多屏

gp888 commented 5 years ago

我发现,ScaleTransformer in horizontal with multi screen模式下,在UltraPagerAdapter的instantiateItem中返回的view 设置layoutParams的leftMargin,rightMargin不管用,我用的Horizontal with multi screen模式,返回的item自己设置边距。

Zhangxd77 commented 5 years ago

请问最后怎么弄的,设置margin没用

yaochangliang159 commented 3 years ago

同问,这个问题,默认间距已经很大了,在设置更大,我想变小,而且能展示多屏