summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/SimpleAdapter.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-07-16 15:10:04 -0700
committerRomain Guy <romainguy@google.com>2013-07-16 16:25:09 -0700
commit93c567cddc9354b33f66cb62d514386ac2e052b0 (patch)
tree115b78096267ee017d88ad64b3ca36b582d2e464 /core/java/android/widget/SimpleAdapter.java
parentd91f8af40b8f9eb8752c432315c619e90d095b6a (diff)
downloadframeworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.zip
frameworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.tar.gz
frameworks_base-93c567cddc9354b33f66cb62d514386ac2e052b0.tar.bz2
Skip unnecessary measurements when possible
This change introduces a new measure cache to View, to remember the measured dimensions for previous pairs of measure specs. The measure cache is cleared whenever a View requests layout. Unfortunately some Views rely on measure being always called when layout is invoked. To work around this problem, we need to remember when we hit the measure cache to force a call to measure just prior to calling onLayout(). This does not completely removes all measure calls but enough to optimize a number of layouts. Change-Id: Ie085fbcf186e9d7505e1127e0786a12968ebc344
Diffstat (limited to 'core/java/android/widget/SimpleAdapter.java')
0 files changed, 0 insertions, 0 deletions