Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +1 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,7 @@ public final class Bridge extends com.android.ide.common.rendering.api.Bridge { Capability.UNBOUND_RENDERING, Capability.CUSTOM_BACKGROUND_COLOR, Capability.RENDER, Capability.LAYOUT_ONLY, Capability.EMBEDDED_LAYOUT, Capability.VIEW_MANIPULATION, Capability.PLAY_ANIMATION, Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +48 −42 Original line number Diff line number Diff line Loading @@ -421,6 +421,11 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { // now do the layout. mViewRoot.layout(0, 0, mMeasuredScreenWidth, mMeasuredScreenHeight); if (params.isLayoutOnly()) { // delete the canvas and image to reset them on the next full rendering mImage = null; mCanvas = null; } else { mViewRoot.mAttachInfo.mTreeObserver.dispatchOnPreDraw(); // draw the views Loading Loading @@ -471,6 +476,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { } mViewRoot.draw(mCanvas); } mViewInfoList = startVisitingViews(mViewRoot, 0); Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +1 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,7 @@ public final class Bridge extends com.android.ide.common.rendering.api.Bridge { Capability.UNBOUND_RENDERING, Capability.CUSTOM_BACKGROUND_COLOR, Capability.RENDER, Capability.LAYOUT_ONLY, Capability.EMBEDDED_LAYOUT, Capability.VIEW_MANIPULATION, Capability.PLAY_ANIMATION, Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +48 −42 Original line number Diff line number Diff line Loading @@ -421,6 +421,11 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { // now do the layout. mViewRoot.layout(0, 0, mMeasuredScreenWidth, mMeasuredScreenHeight); if (params.isLayoutOnly()) { // delete the canvas and image to reset them on the next full rendering mImage = null; mCanvas = null; } else { mViewRoot.mAttachInfo.mTreeObserver.dispatchOnPreDraw(); // draw the views Loading Loading @@ -471,6 +476,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> { } mViewRoot.draw(mCanvas); } mViewInfoList = startVisitingViews(mViewRoot, 0); Loading