Android 平面文件与 SQLite 存储帮助的比较
在我的 Android 应用程序中,用户可以执行许多操作(~50)。对于每个操作,我都会编写少量文本来解释它们的工作原理(“帮助”)。大多数这些操作都是不言自明的,因此用户很少需要阅读“帮助”。
我可以想到两种显示帮助的方法:
- 当需要帮助时,显示所有操作的帮助,并让视图自动滚动到所需帮助的位置
- 只需显示所需操作的帮助
是有正常的方法吗?
我已经将操作列表存储在 SQLite 数据库中。我应该在新列中添加“帮助”还是应该将其存储在平面文本文件中?
In my android application there is a number of operations that the user can do (~50). For each of these operations, I will write a small amount of text explaining how they work ('help'). The majority of these operations are self explanatory, so the user will rarely have to read the 'help'.
There are two methods that I could think of for displaying the help:
- When the help is needed, display the help for all of the operations and have the view automatically scroll to the location of the help required
- Just display the help for the operation required
Is there a normal way of doing this?
I am already storing a list of the operations in a SQLite database. Should I add the 'help' in a new column or should I store it in a flat text file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
还没有尝试过,所以不确定权衡,但考虑将帮助存储为带有命名锚点的 html 并在 web 视图中打开它可能会很有趣?
Haven't tried it so not sure of the tradeoffs, but it might be interesting to contemplate storing the help as html with named anchors and opening it in a webview?