public static boolean isStrikeThrough(AttributeSet a){
  Boolean strike=(Boolean)a.getAttribute(StrikeThrough);
  if (strike != null) {
    return strike.booleanValue();
  }
  return false;
}

public static boolean isStrikeThrough ( AttributeSet a ) { Boolean strike = ( Boolean ) a . getAttribute ( StrikeThrough ) ; if ( strike != null ) { return strike . booleanValue ( ) ; } return false ; }
checks whether the strikethrough attribute is set .
