Android: Design consideration for layout -


i have design following layout:planner, resembles planner. here, have show schedule whole week. far, had completed following part completed.


now, stuck part: incomplete. not getting idea design part. highlighted portion in grid indicates event @ time. problem how can make grids 1 illustrated.

i use 2d graphics , draw in code. hard use xml achieve design, give shot absolutelayout deprecated.

as algorithm how it, first define range of hours timetable have, don't need full 24h, if events in range 8am-8pm example displaying hours 8pm 8am waste of sapce. size of screen , calculate size of 1 rectangle smallest time-frame. , later simple maths calculate position , size of rectangle represent event.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -