@Beta public abstract class LayoutDetector extends ResourceXmlDetector
Detector.ClassScanner, Detector.JavaScanner, Detector.OtherFileScanner, Detector.XmlScanner
ALL
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 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) |
appliesTo, run
afterCheckFile, afterCheckLibraryProject, afterCheckProject, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkCall, checkClass, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getSpeed, visitAttribute, visitDocument, visitElement, visitElementAfter, visitMethod, visitResourceReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicableAttributes, getApplicableElements, visitAttribute, visitDocument, visitElement, visitElementAfter
public boolean appliesTo(@NonNull com.android.resources.ResourceFolderType folderType)
ResourceXmlDetector
appliesTo
in class ResourceXmlDetector
folderType
- 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 boolean hasPadding(@NonNull org.w3c.dom.Element root)