AndroidViewModel是ViewModel的一个子类,可以直接调用getApplication(),由此可以访问应用的全局资源。 来源:https://www.cnblogs.com/gfwei/p/11781166.html 标签 studio