2016-08-13 6 views

ответ

2

Это то же самое.

в 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); 
} 
0
context.getTheme.obtainStyledAttributes() 

и

context.obtainStyledAttributes() оба дают тот же результат, последний просто сокращенный способ без непосредственного вызова themeStyle.

 Смежные вопросы

  • Нет связанных вопросов^_^