MaterialResources.java 文件源码

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

项目:material-components-android 作者:
/**
 * Returns the @StyleableRes index that contains value in the attributes array. If both indices
 * contain values, the first given index takes precedence and is returned.
 */
@StyleableRes
static int getIndexWithValue(TypedArray attributes, @StyleableRes int a, @StyleableRes int b) {
  if (attributes.hasValue(a)) {
    return a;
  }
  return b;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号