public class InefficientWeightDetector
extends com.android.tools.lint.detector.api.LayoutDetector
com.android.tools.lint.detector.api.Detector.BinaryResourceScanner, com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.ResourceFolderScanner, com.android.tools.lint.detector.api.Detector.UastScanner, com.android.tools.lint.detector.api.Detector.XmlScanner| Modifier and Type | Field and Description |
|---|---|
static com.android.tools.lint.detector.api.Issue |
BASELINE_WEIGHTS
Should a LinearLayout set android:baselineAligned?
|
static com.android.tools.lint.detector.api.Issue |
INEFFICIENT_WEIGHT
Can a weight be replaced with 0dp instead for better performance?
|
static com.android.tools.lint.detector.api.Issue |
NESTED_WEIGHTS
Are weights nested?
|
static com.android.tools.lint.detector.api.Issue |
ORIENTATION
Missing explicit orientation
|
static com.android.tools.lint.detector.api.Issue |
WRONG_0DP
Using 0dp on the wrong dimension
|
| Constructor and Description |
|---|
InefficientWeightDetector()
Constructs a new
InefficientWeightDetector |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getApplicableElements() |
void |
visitElement(com.android.tools.lint.detector.api.XmlContext context,
org.w3c.dom.Element element) |
afterCheckEachProject, afterCheckFile, afterCheckLibraryProject, afterCheckProject, afterCheckRootProject, analyzeCallGraph, applicableAnnotations, applicableSuperClasses, appliesTo, appliesToResourceRefs, beforeCheckEachProject, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, beforeCheckRootProject, checkBinaryResource, checkCall, checkClass, checkClass, checkDslPropertyAssignment, checkFolder, checkInstruction, checkMethodCall, createPsiVisitor, createUastHandler, fix, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableConstructorTypes, getApplicableFiles, getApplicableMethodNames, getApplicablePsiTypes, getApplicableReferenceNames, getApplicableUastTypes, getCustomVisitor, getSpeed, inheritAnnotation, isApplicableAnnotationUsage, isCallGraphRequired, visitAnnotationUsage, visitAnnotationUsage, visitAttribute, visitBuildScript, visitClass, visitClass, visitConstructor, visitConstructor, visitDocument, visitElementAfter, visitMethod, visitMethod, visitMethodCall, visitReference, visitReference, visitResourceReference, visitResourceReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final com.android.tools.lint.detector.api.Issue INEFFICIENT_WEIGHT
public static final com.android.tools.lint.detector.api.Issue NESTED_WEIGHTS
public static final com.android.tools.lint.detector.api.Issue BASELINE_WEIGHTS
public static final com.android.tools.lint.detector.api.Issue WRONG_0DP
public static final com.android.tools.lint.detector.api.Issue ORIENTATION
public InefficientWeightDetector()
InefficientWeightDetectorpublic java.util.Collection<java.lang.String> getApplicableElements()
getApplicableElements in interface com.android.tools.lint.detector.api.XmlScannergetApplicableElements in class com.android.tools.lint.detector.api.Detectorpublic void visitElement(@NonNull
com.android.tools.lint.detector.api.XmlContext context,
@NonNull
org.w3c.dom.Element element)
visitElement in interface com.android.tools.lint.detector.api.XmlScannervisitElement in class com.android.tools.lint.detector.api.Detector