CustomLayoutPromptViewConfig.java 文件源码

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

项目:amplify 作者:
/**
 * @return the color value for the attribute at <code>index</code>, if defined; null otherwise
 */
@Nullable
@LayoutRes
private static Integer suppliedLayoutOrNull(@NonNull final TypedArray typedArray, @StyleableRes final int index) {
    final int layoutResourceId = typedArray.getResourceId(index, DEFAULT_LAYOUT_RES_ID_IF_UNDEFINED);

    //noinspection ResourceType
    return layoutResourceId != DEFAULT_LAYOUT_RES_ID_IF_UNDEFINED ? layoutResourceId : null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号