ViewTypes.java 文件源码

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

项目:Chemistry 作者:
@ViewType
@AnyRes
public static int generate() {
    int result;
    for (; ; ) {
        result = sNextGeneratedId.get();
        // aapt-generated IDs have the high byte nonzero; clamp to the range under that.
        final int newValue = (result + 1) & 0x00FFFFFF;
        if (sNextGeneratedId.compareAndSet(result, newValue)) {
            break;
        }
    }
    return CUSTOM_PACKAGE_NAMESPACE_RES | result;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号