@Beta public abstract class LayoutDetector extends ResourceXmlDetector
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.
Detector.BinaryResourceScanner, Detector.ClassScanner, Detector.GradleScanner, Detector.JavaPsiScanner, Detector.JavaScanner, Detector.OtherFileScanner, Detector.ResourceFolderScanner, Detector.UastScanner, Detector.XmlScannerALL| Constructor and Description |
|---|
LayoutDetector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(com.android.resources.ResourceFolderType folderType)
Returns whether this detector applies to the given folder type.
|
protected static boolean |
hasPadding(org.w3c.dom.Element root) |
protected static boolean |
isHeightFillParent(org.w3c.dom.Element element) |
protected static boolean |
isWidthFillParent(org.w3c.dom.Element element) |
runafterCheckFile, afterCheckLibraryProject, afterCheckProject, applicableSuperClasses, appliesTo, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, createPsiVisitor, createUastHandler, fix, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, getSpeed, getSpeed, visitAttribute, visitBuildScript, visitClass, visitClass, visitConstructor, visitConstructor, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitMethod, visitReference, visitReference, visitResourceReference, visitResourceReference, visitResourceReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicableAttributes, getApplicableElements, visitAttribute, visitDocument, visitElement, visitElementAfterpublic boolean appliesTo(@NonNull
com.android.resources.ResourceFolderType folderType)
ResourceXmlDetectorappliesTo in class ResourceXmlDetectorfolderType - the folder type to be visitedprotected static boolean isWidthFillParent(@NonNull
org.w3c.dom.Element element)
protected static boolean isHeightFillParent(@NonNull
org.w3c.dom.Element element)
protected static boolean hasPadding(@NonNull
org.w3c.dom.Element root)