所以我注意到似乎有两种方法可以获得相同的数据,而且我不确定是否有指导何时应该使用(除了绕过getResources可以节省内存,如果你不实际上想要多次使用该对象).但除此之外,我想知道是否有使用指南或理由
Context.getText(id)vs Context.getResources.getText(id)
有人可以帮忙吗?
android android-framework android-resources
android ×1
android-framework ×1
android-resources ×1