code: public static boolean isHaveAttribute(AttributeSet attrs, String attribute) {
          return attrs.getAttributeValue(Ui.androidStyleNameSpace, attribute) != null;
      }
docs: 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