Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emigenix opened this issue Apr 17, 2017 · 0 comments
Open

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

emigenix opened this issue Apr 17, 2017 · 0 comments
Labels

Comments

@emigenix
Copy link
Contributor

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

@emigenix emigenix added the bug label Apr 17, 2017
@emigenix emigenix changed the title Lint: Layout has too many views causing performace loss Lint: Layout has too many views causing performance loss Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant