diff options
author | Alan Viverette <alanv@google.com> | 2015-11-19 09:47:09 -0500 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-11-19 09:47:09 -0500 |
commit | d633ca417d3925521ab15fba1c0cdac172efb184 (patch) | |
tree | cdde0ff394eaeac13dc3240c625fca0f2a0885f1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 40af4f3ed33dde5e24679c7da1b54fa88813ade3 (diff) |
Apply VectorDrawable density scaling before applying theme
Refactors density handling to look more similar to GradientDrawable's
implementation, which should make things easier to maintain. We no
longer update density directly in updateStateFromTypedArray, instead
handling it in applyTheme() and inflate().
Lazily calculates local density-dependent dimensions and invalidates
when the constant state density changes, which should ensure a random
call to applyTheme() will still result in the correct intrinsic
dimensions.
Change-Id: I726878a6cd75d38a550637e3e7a7b6bc68bcaf6d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions