diff options
author | Xavier Ducrohet <xav@android.com> | 2011-01-12 16:21:58 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-01-12 16:21:58 -0800 |
commit | fbfe208b0b32b59d93ce87bd455ef09b9021f72b (patch) | |
tree | 541427e559278d563630372f923f198144cdcf7a /layoutlib_api | |
parent | 8309bc58458a514915f17966e6bd08d0a18308c9 (diff) | |
download | sdk-fbfe208b0b32b59d93ce87bd455ef09b9021f72b.zip sdk-fbfe208b0b32b59d93ce87bd455ef09b9021f72b.tar.gz sdk-fbfe208b0b32b59d93ce87bd455ef09b9021f72b.tar.bz2 |
New layoutlib API: getViewParent and getViewIndex
Change-Id: I201e42a9a7e31fcef8b7a0c5b91a6abd5d5407bd
Diffstat (limited to 'layoutlib_api')
-rw-r--r-- | layoutlib_api/src/com/android/ide/common/rendering/api/RenderSession.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layoutlib_api/src/com/android/ide/common/rendering/api/RenderSession.java b/layoutlib_api/src/com/android/ide/common/rendering/api/RenderSession.java index 12a28de..4db766d 100644 --- a/layoutlib_api/src/com/android/ide/common/rendering/api/RenderSession.java +++ b/layoutlib_api/src/com/android/ide/common/rendering/api/RenderSession.java @@ -149,6 +149,29 @@ public class RenderSession { } /** + * Returns the View parent. + * + * @param viewObject the object for which to return the parent. + * + * @return a {@link Result} indicating the status of the action, and if success, the parent + * object in {@link Result#getData()} + */ + public Result getViewParent(Object viewObject) { + return NOT_IMPLEMENTED.createResult(); + } + + /** + * Returns the index of a given view it its parent. + * @param viewObject the object for which to return the index. + * + * @return a {@link Result} indicating the status of the action, and if success, the index in + * the parent in {@link Result#getData()} + */ + public Result getViewIndex(Object viewObject) { + return NOT_IMPLEMENTED.createResult(); + } + + /** * Inserts a new child in a ViewGroup object, and renders the result. * <p/> * The child is first inflated and then added to its new parent, at the given <var>index<var> |