Tabnine Logo
LayoutDetector
Code IndexAdd Tabnine to your IDE (free)

How to use
LayoutDetector
in
com.android.tools.lint.detector.api

Best Java code snippets using com.android.tools.lint.detector.api.LayoutDetector (Showing top 8 results out of 315)

origin: com.android.tools.lint.checks/lint_checks

@Override
public boolean appliesTo(ResourceFolderType folderType) {
  // Look in layouts for drawable resources
  return super.appliesTo(folderType)
      // and in resource files for theme definitions
      || folderType == ResourceFolderType.VALUES
      // and in drawable files for bitmap tiling modes
      || folderType == ResourceFolderType.DRAWABLE;
}
origin: com.android.tools.lint/lint_api

protected static boolean isWidthFillParent(Element element) {
  return isFillParent(element, ATTR_LAYOUT_WIDTH);
}
origin: com.amazon.device.tools.lint/lint-checks

super.visitMethod(context, visitor, node);
origin: com.amazon.device.tools.lint/lint-checks

@Override
public boolean appliesTo(@NonNull ResourceFolderType folderType) {
  // Look in layouts for drawable resources
  return super.appliesTo(folderType)
      // and in resource files for theme definitions
      || folderType == ResourceFolderType.VALUES
      // and in drawable files for bitmap tiling modes
      || folderType == ResourceFolderType.DRAWABLE;
}
origin: com.android.tools.lint/lint_api

protected static boolean isHeightFillParent(Element element) {
  return isFillParent(element, ATTR_LAYOUT_HEIGHT);
}
origin: com.android.tools.lint/lint-checks

@Override
public boolean appliesTo(@NonNull ResourceFolderType folderType) {
  // Look in layouts for drawable resources
  return super.appliesTo(folderType)
      // and in resource files for theme definitions
      || folderType == ResourceFolderType.VALUES
      // and in drawable files for bitmap tiling modes
      || folderType == ResourceFolderType.DRAWABLE;
}
origin: com.android.tools.lint/lint-api

protected static boolean isWidthFillParent(@NonNull Element element) {
  return isFillParent(element, ATTR_LAYOUT_WIDTH);
}
origin: com.android.tools.lint/lint-api

protected static boolean isHeightFillParent(@NonNull Element element) {
  return isFillParent(element, ATTR_LAYOUT_HEIGHT);
}
com.android.tools.lint.detector.apiLayoutDetector

Javadoc

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.

Most used methods

  • appliesTo
  • isFillParent
  • visitMethod

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now