Skip to content

Lint: Layout has too many views causing performance loss #9

@emigenix

Description

@emigenix

Problem:
Performance often feel laggy, especially going back and forth from main page. The XML files and code controlling these viewers are far from optimized and possibly wrong at worst.

Lint give the following complaint:

X has more than 80 views, bad for performance

and describe it as:

Using too many views in a single layout is bad for performance. Consider using compound drawables or other tricks for reducing the number of views in this layout. The maximum view count defaults to 80 but can be configured with the environment variable ANDROID_LINT_MAX_VIEW_COUNT.

The affected files are:

# ../../src/main/res/layout/activity_dashboard.xml:612
# ../../src/main/res/layout/fragment_chart_slide_page_hour.xml:589

Please compile and check lint results for more details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions