在 LWUIT 浏览器中表示表
我试图在 HTMLComponent 中创建一个水平滚动的表格,因为表格可能比手机的宽度更宽,而且我不希望用户拥有一个包装的表格。我为 HTMLTable 设置了 setScrollableX(true) ,但是在将焦点移入和移出不同的组件时遇到很多问题。关于我如何实现这一目标有什么建议吗?
I am trying to have a horizontally scrolling table within a HTMLComponent as the tables can be wider than the width of the mobile phone and I don't want the user to have a wrapped table. I set setScrollableX(true) for HTMLTable, but I am having a lot of problems getting focus in and out of the different components. Any tips on how I would go about achieving this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
LWUIT 中的焦点是一个混合问题,HTML 组件继承了很多问题。 LWUIT 的 SVN 中提供了浏览器演示 ( http://java.net/projects/lwuit/sources /svn/show )具有允许在浏览器窗口中显示“鼠标指针”的功能,这样您就可以避免焦点并仅指向单元格。
我不确定它是否经过侧面滚动测试,但这可能是使此 UI 更可用的最简单方法。
Focus in LWUIT is a mixed bag of issues and the HTML component inherits quite allot of them. The Browser demo available in LWUIT's SVN ( http://java.net/projects/lwuit/sources/svn/show ) has a feature that allows showing a "mouse pointer" within the browser window so you can avoid focus and just point at a cell.
I'm not sure if it was tested with side scrolling but its possibly the easiest approach to make this UI more usable.