com.android.sdklib.internal.repository.packages
Interface ILayoutlibVersion
- All Known Implementing Classes:
- AddonPackage, LayoutlibVersionMixin, PlatformPackage
public interface ILayoutlibVersion
Interface used to decorate a Package that provides a version for layout lib.
|
Method Summary |
com.android.utils.Pair<java.lang.Integer,java.lang.Integer> |
getLayoutlibVersion()
Returns the layoutlib version. |
LAYOUTLIB_API_NOT_SPECIFIED
static final int LAYOUTLIB_API_NOT_SPECIFIED
- See Also:
- Constant Field Values
LAYOUTLIB_REV_NOT_SPECIFIED
static final int LAYOUTLIB_REV_NOT_SPECIFIED
- See Also:
- Constant Field Values
getLayoutlibVersion
com.android.utils.Pair<java.lang.Integer,java.lang.Integer> getLayoutlibVersion()
- Returns the layoutlib version. Mandatory starting with repository XSD rev 4.
The first integer is the API of layoublib, which should be > 0.
It will be equal to
LAYOUTLIB_API_NOT_SPECIFIED (0) if the layoutlib
version isn't specified.
The second integer is the revision for that given API. It is >= 0
and works as a minor revision number, incremented for the same API level.
- Since:
- sdk-repository-4.xsd