package com.android.layoutlib.api;
-import com.android.layoutlib.api.LayoutScene.IAnimationListener;
-
/**
* Enum describing the layout bridge capabilities.
*
EMBEDDED_LAYOUT,
/** Ability to call<br>
* {@link LayoutScene#insertChild(Object, IXmlPullParser, int, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
- * {@link LayoutScene#moveChild(Object, Object, int, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
+ * {@link LayoutScene#moveChild(Object, Object, int, java.util.Map, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
* {@link LayoutScene#removeChild(Object, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
* {@link LayoutScene#setProperty(Object, String, String)}
* */
/** Ability to call<br>
* {@link LayoutScene#animate(Object, String, boolean, com.android.layoutlib.api.LayoutScene.IAnimationListener)}
* <p>If the bridge also supports {@link #VIEW_MANIPULATION} then those methods can use
- * an {@link IAnimationListener}, otherwise they won't. */
+ * an {@link com.android.layoutlib.api.LayoutScene.IAnimationListener}, otherwise they won't. */
ANIMATE;
}
* <li>new render method: {@link #computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}</li>
* <li>deprecated {@link #computeLayout(IXmlPullParser, Object, int, int, String, Map, Map, IProjectCallback, ILayoutLog)}</li>
* </ul>
- * @Deprecated Extend {@link LayoutBridge} instead.
+ * @deprecated Extend {@link LayoutBridge} instead.
*/
@Deprecated
public interface ILayoutBridge {
/**
* Starts a layout session by inflating and rendering it. The method returns a
- * {@link ILayoutScene} on which further actions can be taken.
+ * {@link ILayoutResult} on which further actions can be taken.
*
* @param layoutDescription the {@link IXmlPullParser} letting the LayoutLib Bridge visit the
* layout file.
* the project.
* @param logger the object responsible for displaying warning/errors to the user.
* @return a new {@link ILayoutResult} object that contains the result of the layout.
- * @deprecated use {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
+ * @deprecated use {@link LayoutBridge#createScene(SceneParams)}
* @since 4
*/
@Deprecated
* the project.
* @param logger the object responsible for displaying warning/errors to the user.
* @return a new {@link ILayoutResult} object that contains the result of the layout.
- * @deprecated use {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
+ * @deprecated use {@link LayoutBridge#createScene(SceneParams)}
* @since 3
*/
@Deprecated
* the project.
* @param logger the object responsible for displaying warning/errors to the user.
* @return a new {@link ILayoutResult} object that contains the result of the layout.
- * @deprecated use {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
+ * @deprecated use {@link LayoutBridge#createScene(SceneParams)}
* @since 2
*/
@Deprecated
* the project.
* @param logger the object responsible for displaying warning/errors to the user.
* @return a new {@link ILayoutResult} object that contains the result of the layout.
- * @deprecated use {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
+ * @deprecated use {@link LayoutBridge#createScene(SceneParams)}
* @since 1
*/
@Deprecated
import java.awt.image.BufferedImage;
/**
- * The result of a layout computation through
- * {@link ILayoutLibBridge#computeLayout(IXmlPullParser, int, int, String, java.util.Map, java.util.Map, java.util.Map, IFontLoader, ILayoutLibLog, ICustomViewLoader)}
+ * The result of a layout computation through {@link ILayoutBridge}.
*
* @since 1
- * @deprecated use {@link ILayoutScene} as returned by {@link ILayoutBridge#startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, java.util.Map, java.util.Map, IProjectCallback, ILayoutLog)}
+ * @deprecated use {@link LayoutScene} as returned by {@link LayoutBridge#createScene(SceneParams)}
*/
public interface ILayoutResult {
/**
/**
* Error return code, in which case an error message is guaranteed to be defined.
- * @See {@link #getErrorMessage()}
+ * @see #getErrorMessage()
*/
final static int ERROR = 1;
import org.xmlpull.v1.XmlPullParser;
-import java.util.Map;
-
/**
* Extended version of {@link XmlPullParser} to use with
- * {@link ILayoutLibBridge#startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
+ * {@link LayoutBridge#createScene(SceneParams)}
*/
public interface IXmlPullParser extends XmlPullParser {
* Starts a layout session by inflating and rendering it. The method returns a
* {@link LayoutScene} on which further actions can be taken.
*
- * @return a new {@link ILayoutScene} object that contains the result of the scene creation and
+ * @return a new {@link LayoutScene} object that contains the result of the scene creation and
* first rendering.
*/
public LayoutScene createScene(SceneParams params) {
* If the listener is null, then the rendering is done synchronously.
* <p/>
* The child stays in the view hierarchy after the rendering is done. To remove it call
- * {@link #removeChild(Object, int)}.
+ * {@link #removeChild(Object, IAnimationListener)}
* <p/>
* The returned {@link SceneResult} object will contain the android.view.View object for
* the newly inflated child. It is accessible through {@link SceneResult#getData()}.
* If the listener is null, then the rendering is done synchronously.
* <p/>
* The child stays in the view hierarchy after the rendering is done. To remove it call
- * {@link #removeChild(Object, int)}.
+ * {@link #removeChild(Object, IAnimationListener)}
* <p/>
* The returned {@link SceneResult} object will contain the android.view.ViewGroup.LayoutParams
* object created from the <var>layoutParams</var> map if it was non <code>null</code>.
* Scene result class. This is an immutable class.
* <p/>
* This cannot be allocated directly, instead use
- * {@link SceneStatus#getResult()},
- * {@link SceneStatus#getResult(String, Throwable)},
- * {@link SceneStatus#getResult(String)}
- * {@link SceneStatus#getResult(Object)}
+ * {@link SceneStatus#createResult()},
+ * {@link SceneStatus#createResult(String, Throwable)},
+ * {@link SceneStatus#createResult(String)}
+ * {@link SceneStatus#createResult(Object)}
*/
public class SceneResult {