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