|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.tools.lint.detector.api.Detector
com.android.tools.lint.detector.api.ResourceXmlDetector
com.android.tools.lint.detector.api.LayoutDetector
@Beta public abstract class LayoutDetector
Abstract class specifically intended for layout detectors which provides some common utility methods shared by layout detectors.
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector |
|---|
Detector.BinaryResourceScanner, Detector.ClassScanner, Detector.GradleScanner, Detector.JavaScanner, Detector.OtherFileScanner, Detector.ResourceFolderScanner, Detector.XmlScanner |
| Field Summary |
|---|
| Fields inherited from interface com.android.tools.lint.detector.api.Detector.XmlScanner |
|---|
ALL |
| Constructor Summary | |
|---|---|
LayoutDetector()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.android.tools.lint.detector.api.ResourceXmlDetector |
|---|
appliesTo, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.android.tools.lint.detector.api.Detector.XmlScanner |
|---|
getApplicableAttributes, getApplicableElements, visitAttribute, visitDocument, visitElement, visitElementAfter |
| Constructor Detail |
|---|
public LayoutDetector()
| Method Detail |
|---|
public boolean appliesTo(@NonNull
com.android.resources.ResourceFolderType folderType)
ResourceXmlDetector
appliesTo in class ResourceXmlDetectorfolderType - the folder type to be visited
protected 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||