/**
* 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;
}
MaterialResources.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:material-components-android
作者:
评论列表
文章目录