public static boolean isHaveAttribute(AttributeSet attrs, String attribute) {
        return attrs.getAttributeValue(Ui.androidStyleNameSpace, attribute) != null;
    }
Check the AttributeSet values have a attribute String, on user set the attribute resource.
Form android styles namespace

@param attrs     AttributeSet
@param attribute The attribute to retrieve
@return If have the attribute return True
caprice/ui/src/main/java/net/qiujuer/genius/ui/Ui.java