Android(复杂)日历布局
我编写了一个日历应用程序,现在正在重新考虑如何显示项目。我不想再使用简单的表格布局,因为不同的任务有不同的持续时间。
我认为绘画对于性能来说是没有选择的? 我还想使用 xclicklisteners...
I wrote a calendar app and I'm now rethinking how to display the items. I don't want to use a simple table layout anymore because the different tasks have different durations.
What options are there to create a Layout like this instead of this?
I think drawing is no option respect to performance?
I would also like to use xclicklisteners...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过创建自己的视图类型(扩展了 View 类,并处理了我自己的绘图)做了与您想要的极其相似的事情。性能非常出色,因为这通常不是视图处于活动状态时快速变化的数据(就像视频游戏那样)。
支持所有常用(或自定义)监听器进行导航、选择、触摸等也非常简单
。值得深思。
I did something extremely similar to what you want by creating my own view type (extended the View class, and handled my own drawing). Performance is excellent as this is not typically data that is rapidly changing while the view is active (like a video game might).
It's also very simple to support all the usual (or custom) listeners for navigation, selection, touch, etc., etc., etc.
Food for thought.