使列表中的滚动条不可见
我正在使用适用于移动设备的 Adobe FLEX 4.5.1。
我有一个显示一些图像的列表:
<s:List id="imageList" initialize="init()" verticalScrollPolicy="off" itemRenderer="skins.CustomIconItemRenderer" width="100" height="32" verticalCenter="0" horizontalCenter="0">
<s:layout>
<s:HorizontalLayout>
</s:HorizontalLayout>
</s:layout>
</s:List>
我想让水平滚动条不可见,但仍然能够滚动。
我在 ActionScript 中尝试过这个:
imageList.scroller.horizontalScrollBar.visible=false;
imageList.scroller.horizontalScrollBar.alpha=0;
imageList.horizontalScrollPolicy= ScrollPolicy.OFF;
但没有成功。
I'm using Adobe FLEX 4.5.1 for Mobile.
I have a List that displays some images:
<s:List id="imageList" initialize="init()" verticalScrollPolicy="off" itemRenderer="skins.CustomIconItemRenderer" width="100" height="32" verticalCenter="0" horizontalCenter="0">
<s:layout>
<s:HorizontalLayout>
</s:HorizontalLayout>
</s:layout>
</s:List>
I want to make the horizontal scroll bars not visible but still be able to scroll.
I tried this in ActionScript:
imageList.scroller.horizontalScrollBar.visible=false;
imageList.scroller.horizontalScrollBar.alpha=0;
imageList.horizontalScrollPolicy= ScrollPolicy.OFF;
with no luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)