Utils.java 文件源码

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

项目:GitHub 作者:
@UiThread // Implicit synchronization for use of shared resource VALUE.
public static float getFloat(Context context, @DimenRes int id) {
  TypedValue value = VALUE;
  context.getResources().getValue(id, value, true);
  if (value.type == TypedValue.TYPE_FLOAT) {
    return value.getFloat();
  }
  throw new Resources.NotFoundException("Resource ID #0x" + Integer.toHexString(id)
      + " type #0x" + Integer.toHexString(value.type) + " is not valid");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号