diff options
author | Xavier Ducrohet <xav@android.com> | 2011-04-18 16:16:07 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-04-20 14:34:17 -0700 |
commit | 762f91d9f7f49b6e3dba4d47243f641967f934a9 (patch) | |
tree | 399fa03b24ddef0c930df6815ef8eb2716326ba6 /layoutlib_api | |
parent | 43f3d9d16316fdf510425a67c26c15d681c3c400 (diff) | |
download | sdk-762f91d9f7f49b6e3dba4d47243f641967f934a9.zip sdk-762f91d9f7f49b6e3dba4d47243f641967f934a9.tar.gz sdk-762f91d9f7f49b6e3dba4d47243f641967f934a9.tar.bz2 |
Move getParser(name) into IProjectCallback.
Change-Id: I316f03a9903e90eac0cb8059469c1de5b679dac5
Diffstat (limited to 'layoutlib_api')
-rw-r--r-- | layoutlib_api/src/com/android/ide/common/rendering/api/ILayoutPullParser.java | 3 | ||||
-rw-r--r-- | layoutlib_api/src/com/android/ide/common/rendering/api/IProjectCallback.java | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/layoutlib_api/src/com/android/ide/common/rendering/api/ILayoutPullParser.java b/layoutlib_api/src/com/android/ide/common/rendering/api/ILayoutPullParser.java index 4b033d9..574f9bb 100644 --- a/layoutlib_api/src/com/android/ide/common/rendering/api/ILayoutPullParser.java +++ b/layoutlib_api/src/com/android/ide/common/rendering/api/ILayoutPullParser.java @@ -38,8 +38,9 @@ public interface ILayoutPullParser extends XmlPullParser { * @param layoutName the name of the layout. * @return returns a custom parser or null if no custom parsers are needed. * - * @since 5 + * @deprecated use {@link IProjectCallback#getParser(String)} instead */ + @Deprecated ILayoutPullParser getParser(String layoutName); } diff --git a/layoutlib_api/src/com/android/ide/common/rendering/api/IProjectCallback.java b/layoutlib_api/src/com/android/ide/common/rendering/api/IProjectCallback.java index 7368e50..b91b598 100644 --- a/layoutlib_api/src/com/android/ide/common/rendering/api/IProjectCallback.java +++ b/layoutlib_api/src/com/android/ide/common/rendering/api/IProjectCallback.java @@ -94,6 +94,13 @@ public interface IProjectCallback { Integer getResourceId(ResourceType type, String name); /** + * Returns a custom parser for the layout of the given name. + * @param layoutName the name of the layout. + * @return returns a custom parser or null if no custom parsers are needed. + */ + ILayoutPullParser getParser(String layoutName); + + /** * Returns the value of an item used by an adapter. * @param adapterView The {@link ResourceReference} for the adapter view info. * @param adapterCookie the view cookie for this particular view. |