AuthConfig.java 文件源码

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

项目:Lock.Android 作者:
/**
 * Retrieves the resource id of the given Style index.
 *
 * @param context a valid Context
 * @param index   The index to search on the Style definition.
 * @return the id if found or -1.
 */
int getIdForResource(@NonNull Context context, @StyleableRes int index) {
    final int[] attrs = new int[]{index};
    final TypedArray typedArray = context.getTheme().obtainStyledAttributes(styleRes, attrs);
    int id = typedArray.getResourceId(0, -1);
    typedArray.recycle();
    return id;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号