Code example for Element

Methods: getTagName

0
        ); 
    } 
 
    @Override 
    public void visitElement(XmlContext context, Element element) {
        context.report(ISSUE, element, context.getLocation(element),
                String.format("%1$s is deprecated", element.getTagName()), null);
    } 
 
    @Override 
    public void visitAttribute(XmlContext context, Attr attribute) {
        if (!ANDROID_URI.equals(attribute.getNamespaceURI())) {
            return; 
        } 
 
        String name = attribute.getLocalName();
        String fix;
        int minSdk = 1;
        if (name.equals(ATTR_EDITABLE)) {
            fix = "Use an <EditText> to make it editable";
        } else if (name.equals(ATTR_ENABLED)) {