@Beta
public abstract class SdkInfo
extends java.lang.Object
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
| Constructor and Description |
|---|
SdkInfo() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getParentViewClass(java.lang.String fqcn)
Returns the fully qualified name of the parent view, or null if the view
is the root android.view.View class.
|
abstract java.lang.String |
getParentViewName(java.lang.String name)
Returns the class name of the parent view, or null if the view is the
root android.view.View class.
|
boolean |
isLayout(java.lang.String tag)
Returns true if the given widget name is a layout
|
boolean |
isSubViewOf(java.lang.String parentViewFqcn,
java.lang.String childViewFqcn)
Returns true if the given child view is the same class or a sub class of
the given parent view class
|
public boolean isSubViewOf(@NonNull
java.lang.String parentViewFqcn,
@NonNull
java.lang.String childViewFqcn)
parentViewFqcn - the fully qualified class name of the parent viewchildViewFqcn - the fully qualified class name of the child view@Nullable
public abstract java.lang.String getParentViewClass(@NonNull
java.lang.String fqcn)
fqcn - the fully qualified class name of the view@Nullable
public abstract java.lang.String getParentViewName(@NonNull
java.lang.String name)
getParentViewClass(String) but without the package.name - the view class name to look up the parent for (not including
package)public boolean isLayout(@NonNull
java.lang.String tag)
tag - the XML tag for the view