user interface - UI Layout problem/algorithm -
i trying solve problem need fit set of rectangles(views) in bigger rectangle(window frame). each view has minimum size , maximum size. there general algorithm solve kind of problems. current code not elegant although works of situations, times situations have empty rects(unoccupied regions) or overlapped rects (views overlapped). sure has solved problem, cannot find yet.
thanks, -abhinay.
often used recursive subdivision, alternating horizontal , vertical directions. eg how eclipse ide works. assumed views or windows can grow arbitrarily large, padded if there not enough content.
Comments
Post a Comment