context.getTheme.obtainStyledAttributes()
有什么区别
和 context.obtainStyledAttributes()
?
主题是我的应用风格吗?
最佳答案
都是一样的
在 Context.java 中
/**
* Retrieve styled attribute information in this Context's theme. See
* {@link android.content.res.Resources.Theme#obtainStyledAttributes(int[])}
* for more information.
*
* @see android.content.res.Resources.Theme#obtainStyledAttributes(int[])
*/
public final TypedArray obtainStyledAttributes(@StyleableRes int[] attrs) {
return getTheme().obtainStyledAttributes(attrs);
}
关于android - View类中context.getTheme.obtainStyledAttributes和context.obtainStyledAttributes的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38933784/