getResources()方法在哪里实现?

时间:2014-05-29 12:31:09

标签: android

有人知道实施getResources()方法的位置吗?它是android.content.Context类中的抽象方法,但我找不到哪个类实现它?我在这里找到answer,但似乎不是正确答案。

我正在搜索一个实现getResources()方法的特定类,因为我想知道它到底是做什么的。

我在哪里可以找到“有些东西”的实现,而不只是调用别的东西?

1 个答案:

答案 0 :(得分:1)

ContextImpl是规范的Context实现类。它有很多方法可以初始化其mResources成员变量,然后可以使用getResources()进行访问。

Context关注通常的Activity - ContextThemeWrapper - ContextWrapper继承路径delegate getResources() to the base contextbase context is set up as ContextImpl instance when the activity is created

相关问题