@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.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, applicableSuperClasses, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkBinaryResource, checkCall, checkClass, checkClass, checkClass, checkFolder, checkInstruction, createJavaVisitor, createPsiVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, getApplicablePsiTypes, getApplicableReferenceNames, getSpeed, getSpeed, visitAttribute, visitBuildScript, visitConstructor, visitConstructor, visitDocument, visitElement, visitElementAfter, visitMethod, visitMethod, visitReference, visitResourceReference, 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)