AndroidCss.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:nativehtml 作者:
static int getTextStyle(CssStyleDeclaration style) {
  int flags = 0;
  if (style.get(CssProperty.FONT_WEIGHT, CssUnit.NUMBER) > 600) {
    flags |= Typeface.BOLD;
  }
  if (style.getEnum(CssProperty.FONT_STYLE) == CssEnum.ITALIC) {
    flags |= Typeface.ITALIC;
  }
  return flags;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号