Nested Layout

Context

UI

Affects

Efficiency,User Experience,Startup Time

Problem

Layouts with elements that have the attribute weight set must be computed twice. While each new element requires initialisation, layout and drawing parsing deep nested LinearLayouts will also increase the computation time exponentially.

Refactorings

Flatten Layouts

Resolves

Efficiency,Usability,Startup time

Affects

Solution

Nested LinearLayouts could be flattened by the use of RelativeLayouts. Or by the use of the <include>-Tag

Links

Related