Custom toast Null pointer exception while using getApplicationContext

前端 未结 0 1968
说谎
说谎 2021-02-05 14:13

Toast customToast =new Toast(getApplicationContext()); LayoutInflater inflater = (LayoutInflater) callActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);//getLayoutInfla

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