Android 表格布局适配器建议?
我正在尝试创建一个应用程序,帮助跟踪团队会议和活动的出席信息。这是一个简单的应用程序,将显示一种电子表格样式的外观。行是团队中的每个人,列是事件和会议发生的日期。
我使用 SQL 数据库执行此操作,并且将动态向数据库添加行和列。
我的问题是......是否有一个好的布局/适配器组合可以使用,以便更轻松地从数据库中提取数据并将其放入布局中?
I'm trying to create an app that will help keep track of attendance information for team meetings and events. It is a simple app that will display a sort of spreadsheet style look. The rows are each person on the team and the columns are dates when events and meetings happen.
I'm doing this with an SQL database, and I am going to be dynamically adding rows and columns to the database.
The question I have is this... Is there a good layout / adapter combo to use to make it easier to pull the data from the database and put it into the layout?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不这么认为......至少没有说,例如,一个 TableAdapter 可以自动使用正确的列格式化 TableLayout。
由于您是从数据库中提取信息,所以我不确定是否会推荐 TableLayout,但更多的是 ListView,可能 为项目视图使用单行 TableLayout,尽管线性布局会也许就足够了。
I don't believe so... at least there isn't say for example, a TableAdapter that automatically formats a TableLayout with the correct columns.
Since you are pulling information from a database, I'm not sure I would recommend a TableLayout at all, but more a ListView, possibly with a single row TableLayout for the item views, though a linear layout would probably suffice.