小编Hay*_*ley的帖子

使用Context.getText和Context.getResources.getText有什么区别吗?

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

Context.getText(id)vs Context.getResources.getText(id)

有人可以帮忙吗?

android android-framework android-resources

5
推荐指数
1
解决办法
1246
查看次数