aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/layoutlib/api/ViewInfo.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2010-11-10 17:05:01 -0800
committerTor Norbye <tnorbye@google.com>2010-11-10 17:19:56 -0800
commit5cdaad56ce59f9efc92cd8c3c1faf6c58b686a0f (patch)
tree951203113fcac696260cf038e197fcf02c1cbaa0 /layoutlib_api/src/com/android/layoutlib/api/ViewInfo.java
parent4db3692678ec4b2367c36bc2abeaa5f58776345a (diff)
downloadsdk-5cdaad56ce59f9efc92cd8c3c1faf6c58b686a0f.zip
sdk-5cdaad56ce59f9efc92cd8c3c1faf6c58b686a0f.tar.gz
sdk-5cdaad56ce59f9efc92cd8c3c1faf6c58b686a0f.tar.bz2
Refactor to make model rendering reusable
This changeset refactors the code in GraphicalEditorPart a bit to make the part which renders a model into an image reusable. This will be used by an upcoming changeset to provide previews of palette items as you drag them. The refactoring is straightforward, even though the diffs unfortunately don't show it. I basically split up the large recomputeLayout() method into smaller separate chunks (validating the current file, validating the model and validating the sdk and looking up the bridge) and added a new render method which can take just a model (separate from the editor's own model) and render it. Change-Id: I96603c4beb2d56d36416cd2b6448c87dd306217c
Diffstat (limited to 'layoutlib_api/src/com/android/layoutlib/api/ViewInfo.java')
0 files changed, 0 insertions, 0 deletions