Java Code Examples for android.graphics.Paint.STRIKE_THRU_TEXT_FLAG

The following are Jave code examples for showing how to use STRIKE_THRU_TEXT_FLAG of the android.graphics.Paint class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: nativehtml   File: AndroidCss.java   View Source Code Vote up 5 votes
static int getPaintFlags(CssStyleDeclaration style) {
  switch (style.getEnum(CssProperty.TEXT_DECORATION)) {
    case UNDERLINE:
      return Paint.UNDERLINE_TEXT_FLAG;
    case LINE_THROUGH:
      return Paint.STRIKE_THRU_TEXT_FLAG;
    default:
      return 0;
  }
}