xLite icon indicating copy to clipboard operation
xLite copied to clipboard

Lint: View Holder Candidates: recycle the view patterns for performance

Open emigenix opened this issue 7 years ago • 0 comments

Problem: Scrolling often feel laggy, especially in the event viewers. The XML files and code controlling these viewers are far from optimized and possibly outdated at worst.

Lint give the following complaint:

Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling

The affected files are:

# ../../src/main/java/zz/snsn/xlite/views/adapter/ListViewEventAdapter.java:65
# ../../src/main/java/zz/snsn/xlite/views/adapter/ListViewImsiCatcherAdapter.java:60

Please compile and check lint results for more details This issue is also related to #7.

emigenix avatar Apr 17 '17 16:04 emigenix