我刚刚开始使用Android开发和玩游戏.
documentation for getResources()表示它将为您的应用程序包提供一个Resources实例.
在代码示例中,我已经看到这用于访问res中的资源,但似乎您可以直接访问它们.
例如,从res / values / strings.xml中检索my_string:
我刚刚开始使用Android开发和玩游戏.
documentation for getResources()表示它将为您的应用程序包提供一个Resources实例.
在代码示例中,我已经看到这用于访问res中的资源,但似乎您可以直接访问它们.
例如,从res / values / strings.xml中检索my_string: