Android: Design consideration for layout -
i have design following layout:
, resembles planner. here, have show schedule whole week. far, had completed following part
.
now, stuck part:
. 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
Post a Comment