Android 可以替代 jtable 吗?
android(3.x、sdk 11 或更高版本)是否有类似于 jtable 对象的小部件?
我不是从头开始开发一个小部件(使用 gridview 或 tablelayout),而是寻找一个随时可用的小部件。
TIA,
鲍勃
更新:我发现这篇优秀的文章 http: //www.heikkitoivonen.net/blog/2009/02/15/multicolumn-listview-in-android/ 关于如何使用多列列表视图。
Does android (3.x, sdk 11 or grater) has a widget similar to a jtable object?
Instead of developing one from the ground (using gridview or tablelayout) I'm searcing for a ready to use widget.
TIA,
Bob
Update: I found this excelent post http://www.heikkitoivonen.net/blog/2009/02/15/multicolumn-listview-in-android/ about how to use a multicolumn listview.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就标题、排序等而言,情况并非如此。您可能必须自己动手。最接近的扩展是 ListView 和 ListActivity,但您必须记住,在较小的屏幕和触摸导航的情况下,JTable 中的许多 UI 范例都不起作用。
请记住,每个列表行可以包含许多其他布局项,因此您可以轻松模拟多列设置。您甚至可以包含延迟加载的图像、与此行相关的特定功能的按钮等等。
Not as such in terms of headers, sorting and so on. You will probably have to roll your own. The closest to some extend is ListView together with a ListActivity but you have to keep in mind that with the smaller screen and the navigation by touch lots of UI paradigms from JTable dont work.
Keep in mind that each list row can include many other layout items so you can emulate multi column setups easily. You can even include images that are lazily loaded, buttons for specific functionality related to this row and so on..