LWUIT 滚动列表问题
我的 Form
中有 5 个Lists
。它们是隐藏的,当我显示其中之一时,焦点进入 List
内部,并且 Form
不会滚动。我想显示所有 List
,在其中导航并保持我的 Form
滚动显示该 List
。有没有办法制作 >列表
不可滚动?
编辑/澄清
我显示了一个带有按钮
的表单
。当我按下此按钮时,按钮下会显示一个列表。当焦点进入 List
内部时,List
开始滚动,但 Form
不滚动,而且我看不到其他内容元素。我想要的是......一个不可滚动的 List
和一个可滚动的 Form
,让我可以看到 List
的其余部分。
在照片中,您可以看到,CheckBoxes
位于List
中。这个List
有一个滚动条,但他的滚动条不是来自Form
。
I have 5 Lists
in my Form
. They are hidden and when I show one of them, the focus go inside the List
and the Form
doesn't scroll. I want to show all the List
, navigate across it and keep my Form
scrolling showing that List
.Is there any way to make a List
no scrollable?
EDIT/CLARIFICATION
I show a Form
with a Button
. When I press this Button
a List
is showed under the Button
. When the focus enter inside the List
, the List
starts to scroll, but the Form
doesn't, and I can't see the other elements. What I want is...a List
no scrollable and a Form
scrollable that let me see the rest of the List
.
In the photo, you can see, the CheckBoxes
are in the List
. This List
has a scrollbar but is his scrollbar not from the Form
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有办法使列表不可滚动,但这应该不重要。如果您的表单是可滚动的并且使用正确的布局(例如 BoxLayout Y),那么一切都应该正常工作(假设您在添加新列表后重新验证)。
就我个人而言,我会使用组件/容器而不是列表来进行如此复杂的设计。与列表相比,它们具有许多优点,例如更精细的焦点/触摸行为。
There is no way to make a list none scrollable but that shouldn't matter. If your form is scrollable and uses the correct layout (e.g. BoxLayout Y), then everything should just work (assuming you revalidate after adding a new list).
Personally I would use Components/Containers rather than lists for a design as elaborate as this. They provide lots of advantages over lists such as more refined focus/touch behavior.