pass context to ViewModel with a function member not in constructor or factory in Android

前端 未结 0 1102
清酒与你
清酒与你 2020-12-28 16:29

I know that is not a best practice to pass a context to a ViewModel. but I wonder is it okay to get a context instance as a local parameter of a function in the View

相关标签:
回答
  • 消灭零回复
提交回复
热议问题