实施日视图/ Android的时间表UI的最佳方法 [英] Best way to implement Day View / Schedule Android UI

查看:772
本文介绍了实施日视图/ Android的时间表UI的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(声明:我所有的生活中,我一直非常远的用户界面中的任何
  类型,形状或形式 - 后端和算法是我的事,UX,
  不幸的是,没有。但总有一个时刻,当你想
  给它一个去...)

(disclaimer: all my life I've been incredibly far from UIs of any type, shape or form - backend and algorithms were my things, and UX, unfortunately, wasn't. But there's always a moment when you want to give it a go...)

我一直在摆弄与自己的玩具项目的想法,而作为它的一部分,我想实现类似安排在Android的日历/日视图东西。可能是最好的,这是通过此UI模拟(当然我不是最好的UI设计,但希望这将足以说明我的观点)

I've been fiddling with an idea of a toy project for myself, and as a part of it, I want to implement something similar to Schedule/Day view in Android calendar. Probably best this is explained by this UI mock (admittedly I'm not the best UI designer, but hopefully this would be enough to illustrate my point)

目前我正在考虑使用RelativeLayout的布局进度块和重绘的背景与电网(小时线)。我拨弄着RelativeLayout的一点点,可以说,这可能做的伎俩,但我对背景非常不确定。你觉得这个方法是有效的?有没有做一些更好的办法?

Currently I'm thinking of using RelativeLayout to layout the schedule blocks and redraw background with the grid (hour lines). I fiddled a little bit with RelativeLayout and arguably this might do the trick, but I'm very unsure about the background. Do you think this approach would work? Is there some better way of doing it?

提前感谢!

推荐答案

我一直在寻找同样的事情,而且能找到没有好的选择,所以我创建的 yadview 项目( HTTPS://$c$c.google.com/p/yadview )。 yadview在AOSP日历应用的时间表DayView的叉子,但一直显著重新设计,以便集成到应用程序中。

I was looking for the same thing, and could find no good options, so I created the yadview project (https://code.google.com/p/yadview). yadview is a fork of the DayView schedule in the AOSP Calendar app, but has been reworked significantly to allow for integration into your application.

样由此看来在活动的截图:

Sample screenshot of this View in an Activity:

这篇关于实施日视图/ Android的时间表UI的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆