diff options
Diffstat (limited to 'layoutlib_api/src/com/android/layoutlib/api/SceneParams.java')
-rw-r--r-- | layoutlib_api/src/com/android/layoutlib/api/SceneParams.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layoutlib_api/src/com/android/layoutlib/api/SceneParams.java b/layoutlib_api/src/com/android/layoutlib/api/SceneParams.java index 0eb9768..1bbd96a 100644 --- a/layoutlib_api/src/com/android/layoutlib/api/SceneParams.java +++ b/layoutlib_api/src/com/android/layoutlib/api/SceneParams.java @@ -64,6 +64,8 @@ public class SceneParams { private int mCustomBackgroundColor; private long mTimeout; + private IImageFactory mImageFactory = null; + /** * * @param layoutDescription the {@link IXmlPullParser} letting the LayoutLib Bridge visit the @@ -136,6 +138,7 @@ public class SceneParams { mCustomBackgroundEnabled = params.mCustomBackgroundEnabled; mCustomBackgroundColor = params.mCustomBackgroundColor; mTimeout = params.mTimeout; + mImageFactory = params.mImageFactory; } public void setCustomBackgroundColor(int color) { @@ -147,6 +150,10 @@ public class SceneParams { mTimeout = timeout; } + public void setImageFactory(IImageFactory imageFactory) { + mImageFactory = imageFactory; + } + public IXmlPullParser getLayoutDescription() { return mLayoutDescription; } @@ -214,4 +221,8 @@ public class SceneParams { public long getTimeout() { return mTimeout; } + + public IImageFactory getImageFactory() { + return mImageFactory; + } } |